HTML button On Custom page
In this video you can see how we use HTML button on the zoho creator custom page, how we can use conditions on the html page. You can define an action that takes place when a button is clicked in your page. You can link various actions to a button click including redirecting users to an external URL, opening a Zoho Creator component like: a form, report, or a page. Also, you can specify a custom function to be triggered on click of a button.
To configure a HTML button action,
1. Edit your app.
2. Select the required page from the accordion menu on the top-left corner, or from the application preview in the middle. You’ll be taken to its Design page.
3. Click on the device icon to navigate to the Design view of the device of your choice.
4. Hover in the middle and click Open Page Builder .
5. Click to select a panel that holds the button you want to configure action for.
6. Click the Configure option in the toolbar in the header area of the page builder. The Panel configuration pane slides in.
7. Click to select the button inside the panel.
8. Select Action from the configuration options on the right.
9. Choose from the options:
– None : Use this option to remove any action associated previously.
– Open url : Opens a given URL in a specified target window.
– To configure Open URL action:
– Select Open url .
– Enter a URL you want to open in the space provided below.
– Select a target window from the Open in dropdown.
– Open form : Opens a specified form. You can select a form from any application in your account.
Confirmation for function execution in buttons
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, you 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 confirmation before they’re executed:
– Deleting
– Approving or Rejecting
– Changing Status
– Sending emails
https://www.youtube.com/embed/t9oJy1Rs5Mc