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>

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        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 LinksWorkflow AutomationData Collection
                              Web FormsRetailOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceForms for Solopreneurs
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit
                              Forms for Government
                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic FormsInsurance
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsWufoo alternativeEncrypted Forms
                              Accessible FormsTypeform alternativeSecure Forms

                              WCAG

                                          Create. Review. Publish.

                                          Write, edit, collaborate on, and publish documents to different content management platforms.

                                          Get Started Now






                                                            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

                                                                  Use cases

                                                                  Make the most of Zoho Desk with the use cases.

                                                                   
                                                                    

                                                                  eBooks

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

                                                                   
                                                                    

                                                                  Videos

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

                                                                   
                                                                    

                                                                  Webinar

                                                                  Sign up for our webinars and learn the Zoho Desk basics, from customization to automation and more

                                                                   
                                                                    
                                                                  • Desk Community Learning Series


                                                                  • Meetups


                                                                  • Ask the Experts


                                                                  • Kbase


                                                                  • Resources


                                                                  • Glossary


                                                                  • Desk Marketplace


                                                                  • MVP Corner



                                                                    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 Demo

                                                                                                      Get a personalized demo or POC

                                                                                                      REGISTER NOW


                                                                                                        Design. Discuss. Deliver.

                                                                                                        Create visually engaging stories with Zoho Show.

                                                                                                        Get Started Now









                                                                                                                            • Related Articles

                                                                                                                            • Creating and managing action item in reports for mobile and tablet

                                                                                                                              1. What does this page cover Learn how to configure custom actions for reports and access them on mobile and tablet devices. Learn how to create a custom action item for a report in the web 2. Availability Available across all plans of Creator Can be ...
                                                                                                                            • Creating an action item

                                                                                                                              This page is relevant for all report types except pivot chart and pivot table. Note: Custom Actions (action items) configured in your reports will not be exported. To create an action item: Navigate to Design page. Click the web, mobile, or tablet ...
                                                                                                                            • 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 ...
                                                                                                                              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