Associate Execute Function Action to a Text Displayed in a Panel | Zoho Creator Help

Associate Execute Function action

Execute function action invokes a custom function specified in any of your Zoho Creator applications.

To associate an execute function action:

  1. Double click the panel to associate an action to the text in it or single click to select the panel and then click the  Configure  option in the toolbar at the top center of the page builder.

  2. Click to select the configured text in the panel to associate an action.
  3. Select  Action  from the options on the right side of the configuration menu. 

  4. From the  Action  dropdown, select  Execute function .

  5. Select a  Function  from the dropdown.
     
    Note : The  Function  dropdown lists all the custom functions in the application you are currently working on. To select a custom function from another application, click the  Change App  give in Blue, on the footer of the  Function  dropdown. Select another application and click  Done  to view all the custom functions in it. 
     

  6. Enter a  Query parameter  in the space provided. You can choose an argument of the selected function, to pass it as a page parameter.
  7. Select when to execute the function workflow:  At Once  or  After Confirmation .
    • If you choose  At Once , go to the next step (8).
    • If you choose  After Confirmation , you must specify the  confirmation message  and button text for the  confirm execution  and  cancel execution  buttons.  Learn more
  8. Specify a  Success message  to be displayed, on successful execution of the associated function.
  9. You can make the changes and close the panel configuration sheet. The changes will be auto-saved.

Confirmation for function execution in panel text

Before executing actions such as deleting certain records, a confirmation for proceeding with it helps ensure you don't delete important records by accident. Sometimes, inexperienced users may never even realize that a record was deleted or that more than one record was accidentally deleted. In such instances, it is always safe to confirm the action request before execution. 
Here are some of the scenarios where actions can have confirmations before they're executed:

  • Deleting
  • Approving or Rejecting
  • Changing Status
  • Send emails
Note: In pages, this confirmation for actions is available only for executing a function.

Configure confirmation for function execution

  1. Edit your application
  2. Open your  page builder and select the panel that contains the  text  for which you want to configure an action.
  3. Click the  Configure  option in the toolbar in the header area of the page builder. A  configuration  pane will slide in.
  4. On the left side of the  configuration  pane, a preview of the panel will appear. 
  5. Click to select the  text  inside the panel.
  6. Click the  Action  tab and choose  Execute function  from the  Action Type  dropdown on the right.
  7. Select a  custom function  and specify the argument value.
  8. Click  After confirmation  under the  Execute the workflow  section.
  9. Specify the following:
    • Confirmation message : The message that will be displayed in the confirmation popup informing users of the action that will take place when they confirm to execute it.
    • Confirmation execution button : The button text that will be displayed to confirm the function execution.
    • Cancel execution button : The button text that will be displayed to cancel the function execution.

      Note : The default values for the  Confirmation execution  button and  Cancel execution  button will be  Yes  and  No  respectively.
  10. The changes will be saved automatically. When you access your page in live mode, the confirmation popup will prompt users before the function is executed.

ZML script for confirmation of function execution

The below script shows how to configure the confirmation popup details such as confirmation message, confirmation execution button and cancel execution button for the execute function action in the panel component:

<panel>
  <pr height='fill' width='fill'>
    <pc>
       <text action='ExecuteFunction' executeWorkflow='afterConfirmation'     confirmationMsg='Are you sure you want to cancel the order?' confirmButtonText='Cancel' cancelButtonText='Don’t cancel' parameters='String' functionName='cancelOrder' color='#333333' size='16px' uppercase='false' underline='false' bold='false' italic='false' type='Text' successMsg='Your order has been cancelled successfully!' value='New employees this month'> </text>
        </pc>
      </pr>
</panel>

    Access your files securely from anywhere

      Zoho CRM Training Programs

      Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

      Zoho CRM Training
        Redefine the way you work
        with Zoho Workplace

          Zoho DataPrep Personalized Demo

          If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

          Zoho CRM Training

            Create, share, and deliver

            beautiful slides from anywhere.

            Get Started Now


              Zoho Sign now offers specialized one-on-one training for both administrators and developers.

              BOOK A SESSION






                          Quick Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          Offline Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal

                          Form Designer HR

                          Card Forms Food
                          Assign Forms Photography

                          Translate Forms Real Estate
                          Electronic Forms

                          Notification Emails for Forms Alternatives
                          Holiday Forms Google Forms alternative 
                          Form to PDF Jotform alternative





                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                Manage your brands on social media

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      Zoho Sheet Resources

                                                       

                                                          Zoho Forms Resources


                                                            Secure your business
                                                            communication with Zoho Mail


                                                            Mail on the move with
                                                            Zoho Mail mobile application

                                                              Stay on top of your schedule
                                                              at all times


                                                              Carry your calendar with you
                                                              Anytime, anywhere




                                                                    Zoho Sign Resources

                                                                      Sign, Paperless!

                                                                      Sign and send business documents on the go!

                                                                      Get Started Now




                                                                              Zoho TeamInbox Resources



                                                                                      Zoho DataPrep Resources



                                                                                        Zoho DataPrep Demo

                                                                                        Get a personalized demo or POC

                                                                                        REGISTER NOW


                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now









                                                                                                              • Related Articles

                                                                                                              • Associate Open URL action

                                                                                                                Associating an Open URL action to text allows you to redirect users to the specified URL when they click on the text. To associate an Open URL action to the text in a panel: Double click the panel to associate an action to the text in it or single ...
                                                                                                              • Associate Open Report action

                                                                                                                Associating an Open report action to text, allows user to open a specified Report when they click the text. The associated report can belong to any application in your Zoho Creator account. To associate an Open report action to the text in a panel: ...
                                                                                                              • Associate Open Form action

                                                                                                                Associating an Open Form action to text, allows user to open a specified Form when they click the text. The associated form can belong to any application in your Zoho Creator account. To associate an Open Form action to the text in a panel: Double ...
                                                                                                              • Associate Open Page action

                                                                                                                Associating an Open page action to text, allows user to open a specified page when they click the text. The associated page can belong to any application in your Zoho Creator account. To associate an Open page action to the text in a panel: You can ...
                                                                                                              • Associate action to a panel

                                                                                                                You can define an action that takes place when a panel is clicked. You can link various actions to a click of a panel including redirecting users to an external URL, opening a Zoho Creator component like: a form, report, or a page. You can also ...
                                                                                                                Wherever you are is as good as
                                                                                                                your workplace

                                                                                                                  Resources

                                                                                                                  Videos

                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                  eBooks

                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                  Webinars

                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                  CRM Tips

                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                    Zoho Show Resources