Configure ‌navigateParentURL() method | Zoho Creator Help

Configure ‌navigateParentURL() method

  1. To learn more about the navigateParentURL() method, click here.
  2. This method can be configured in page elements such as widgets.
  3. This method is applicable to both C5 and C6 versions of Creator. Click here to find your current version.

To use navigateParentURL() method in a widget

  1. Create a widget
  2. Add widget to a page

Create a widget

1. Download and install Node.js source code from this link https://nodejs.org/en/download/
2. Run the following commands to confirm that the installation was successful. The commands return the version of the package.
Note: When entering commands, there is no need to enter the dollar sign ($) explicitly; it will already be present by default. Commands can be run in Terminal for Mac OS and in Command Prompt for Windows. 
  1. $ node -v
  2. $ npm -v
3. Run the following command to install the zapps cli node package.
  1. $ npm install -g zoho-extension-toolkit
Note: Use the following command in the event of any permission issues:
sudo npm install -g zoho-extension-toolkit
4. Run the following command to confirm that the installation was successful. It will return the version of the package.
  1. $ zet -v
5. Create a project using the following command:
  1. $ zet init
Note: Use the following command in the event of permission issues:
sudo zet init
6. Select Zoho Creator.

7. Specify a project name. Hit Enter.

Note
The project is basically a folder which is used to store files that are required to render the widget. It can contain only alphanumeric and underscore characters. 

8. Type cd <project/folder_name> and hit Enter to navigate to the project directory.

 9. Run the following command. 
  1. $ zet run
Note: This will run the HTTP server in your local machine in port number 5000. The port should not be occupied with any other process before starting the server. A relevant note may appear as a result of the above command. 
10. To verify if the server has started successfully, navigate to widget.html and open it in a browser. The widget.html file will be present in the folder (project) created earlier. 

Note
By default, this file will be present in the App folder.
You can also access the widget.html file by following the below steps:
 1. Open the local host URL (https://127.0.0.1:5000) in a new tab and authorize the connection by clicking Advanced->Proceed to 127.0.0.1.
2. Append /app/widget.html to the local host URL as follows: https://127.0.0.1:5000/app/widget.html
You should see the following screen:


11. Open the app folder in your project folder. Find the widget.html file in the same folder.



12. Enter your code in the widget.html file, save and download it. Any third-party app, for example Sublime, VS Code, or Eclipse, can be used to add or modify code in the html file. The widget.html file contains the structure, design, and components of the widget. 

You can copy the below sample code in the widget.html file to navigate to the User Details form upon choosing the correct option inside the Verify widget in this example.
  1. function addData() {

  2.   ZOHO.CREATOR.init()
  3.         .then(function() {
  4.           config = {
  5.         action : "open",
  6.         url : "https://creatorapp.zoho.com/megan/zylker-online-tutorials/#Form:User_Details",
  7.         window : "same"
  8.   }
  9. ZOHO.CREATOR.UTIL.navigateParentURL(config);
  10.         });
  11. }

13. Navigate to the Settings page of the app in which you need to embed your widget. Select Widgets.

14. Click Create button.

15. The New Widget pane will appear.

16. Enter a name for your Widget.

17. Choose Internal option in the Hosting drop down list.

18. Upload the packed zip file from the dist folder in the Widget File field.

19. Enter /widget.html in the Index File field. The /widget.html file is the index file i.e., this file will be incorporated as the widget in your page.



20. Click Create. The created widget is added to the Widgets page.

21. This widget will appear as a drag-and-drop element in the page builder for all the pages present in your application.

Add widget to a page

1. Navigate to the Edit mode of your app.

2. Open the builder of the required page. 

3. Select Widgets from the left pane. The created widget will appear.



4. Drag and drop the widget into the builder area.

5. Click Done to exit the builder.

Get started with sample data

To help you get started quickly, we've provided sample data that you can download and use to start creating widgets!



    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








                                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







                                                                                            You are currently viewing the help articles of Sprints 1.0. If you are a user of 2.0, please refer here.

                                                                                            You are currently viewing the help articles of Sprints 2.0. If you are a user of 1.0, please refer here.



                                                                                                  • Related Articles

                                                                                                  • Understand ‌navigateParentURL() method

                                                                                                    This method is applicable to widgets. Widgets are used to extend the capabilities of your Zoho Creator application, helping you perform tasks that couldn't be accomplished using the built-in features, as well as enhance the front-end capabilities of ...
                                                                                                  • Configure push notifications for your iOS app

                                                                                                    This help page is for users in Creator 6. If you are in the older version (Creator 5), click here. Know your Creator version. As part of your Creator application’s workflows, you can configure push notifications. For these to work in your iOS app, ...
                                                                                                  • Configure average

                                                                                                    Average option in a panel allows a user to calculate and display the median value of a field in the selected form. Also, you can evaluate the average for all the records containing the chosen field or based on a set criteria. To configure average in ...
                                                                                                  • Configure sum

                                                                                                    The Sum option in a panel allows a user to calculate and display the Total/Sum of a field in a selected form. Also, you can evaluate the sum for all the records containing the chosen field or based on a set criteria. To configure sum in a panel Drag ...
                                                                                                  • Configure count

                                                                                                    Count option in a panel allows a user to calculate and display the count of total entries available in the selected form. Also, you can evaluate count for all the records containing the chosen field or based on a set criteria. To configure count in a ...
                                                                                                    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