Possible Values
- A numeric value in pixels
Example
Syntax | <button text='Know More' cornerRadius='10px'/> |
---|
Output | |
---|
Note:
- cornerRadius attribute is optional.
9. margin
The margin attribute generates a specified amount of space between all foure sides of the button element and it's parent container.
Possible Values
- A numeric value in pixels
Example
Syntax | <button text='Know More' margin='50px'/> |
---|
Output | |
---|
Note:
- margin attribute is optional
10. marginTop
The marginTop attribute generates a specified amount of space between the top side of the button and it's parent container.
Possible Values
- A numeric value in pixels
Example
Syntax | <button text='Know More' marginTop='50px'/> |
---|
Output | |
---|
Note:
- marginTop attribute is optional
11. marginRight
The marginRight attribute generates a specified amount of space between the right side of the button and it's parent container.
Possible Values
- A numeric value in pixels
Example
Syntax | <button text='Know More' marginRight='400px'/> |
---|
Output | |
---|
Note:
- marginRight attribute is optional
12. marginBottom
The marginBottom attribute generates a specified amount of space between the bottom side of the button and its parent container.
Possible Values
- A numeric value in pixels
Example
Syntax | <button text='Know More' marginBottom='50px'/> |
---|
Output | |
---|
Note:
- marginBottom attribute is optional
13. marginLeft
The marginLeft attribute generates a specified amount of space between the left side of the button and it's parent container.
Possible Values
- A numeric value in pixels
Example
Syntax | <button text='Know More' marginLeft='400px'/> |
---|
Output | |
---|
Note:
- marginLeft attribute is optional
14. action
The action attribute specifies the action to be triggered on click of the button.
Possible Values
- Link
- Form
- Report
- Page
- Function
Example
action | Syntax |
---|
Link | <button text='button label' action='Link' url='A URL to be opened '/>* |
Form | <button text='button label' action='Form' componentLinkName='linkname of the Zoho Creator form to be opened' appLinkName='linkname of the Zoho Creator application to which the form belongs' />* |
Report | <button text='button label' action='Report' componentLinkName='linkname of the Zoho Creator report to be opened' appLinkName='linkname of the Zoho Creator application to which the report belongs' />* |
Page | <button text='button label' action='Page' componentLinkName='linkname of the Zoho Creator page to be opened' appLinkName='linkname of the Zoho Creator application to which the page belongs' />* |
Function | <button text='button label' action='Function' functionName='Name of the custom function to be triggered' />* |
* Learn in detail about each of the action types in the following sections.
Note:
- action attribute is optional.
- The action attribute acts as a source attribute. i.e: One or more of the following attributes viz: url, componentLinkName, appLinkName, functionName, parameters, successMsg, target, popupWidth and popupHeight will be applicable only when an action is specified.
15. url
The url attribute specifies the resource location to be opened on click of the button.
Possible Values
- A url pointing to another website
- A url pointing to a component within your Zoho Creator Account
Example
Note:
- url attribute is optional.
- It is applicable only when <action='Link'>
16. componentLinkName
The componentLinkName attribute specifies the link name of the Zoho Creator component to be opened on click of the button.
Possible Values
- Linkname of the Zoho Creator Application component to be opened. Refer to this page for the link names of all the components across all applications in your Zoho Creator Account.
Example
action | Syntax |
---|
Form | <button action='Form' componentLinkName='User_Details'/> |
Report | <button action='Report' componentLinkName='User_Details_Report'/ |
Page | <button action='Page' componentLinkName='User_Dashboard'/> |
Note:
- componentLinkName attribute is optional.
- It is applicable only when <action='Form'/'Report'/'Page'>
17. appLinkName
The appLinkName attribute specifies the name of the Zoho Creator application to which the associated component belongs.
Possible Values
- Linkname of the Zoho Creator Application to be opened. Refer to this page for the link names of all the applications in your Zoho Creator Account.
Example
action | Syntax |
---|
Form | <button action='Form' componentLinkName='User_Details' appLinkName='Resource_management'/> |
Report | <button action='Report' componentLinkName='User_Details_Report' appLinkName='Resource_management'/> |
Page | <button action='Page' componentLinkName='User_Dashboard' appLinkName='Resource_management'/> |
Note:
- appLinkName attribute is optional. You do not need to specify appLinkName if the component you are associating to the action, belongs to the same application you are currently in.
- It is applicable only when <action='Form'/'Report'/'Page'/'Function'>
18. functionName
The functionName attribute specifies the name of the custom function to be triggered on click of the button.
Possible Values
- A custom function defined in any of your Zoho Creator Applications. To get the list of custom functions in your application: Go to Settings -> Extensions -> Custom Functions
Example
- <button action='Function' functionName='send_email'/>
Note:
- The functionName can belong to a default namespace or a custom namespace.
- If the function belongs to a custom namespace : <functionName='namespace_name.function_name'>
- functionName attribute is optional.
- It is applicable only when <action='Function'> and a function name must be specified.
19. parameters
The parameters attribute specifies parameter to be associated to an action.
Possible Values
- When <action='Form' / 'Report' / 'Page'>, parameters refers to the query string that will be appended to the corresponding component's permalink. Refer to this page to learn about using query strings in permalinks of forms, reports and pages.
- When <action='Function'>, parameters refers to an argument of the selected custom function.
Example
action | Syntax |
---|
Form | <button text='button label' action='Form' componentLinkName='User_Details' appLinkName='Resource_management' parameters='App_name=${name}'/> OR <button text='button label' action='Form' componentLinkName='User_Details' appLinkName='Resource_management' parameters='App_name=Zoho Creator'/> |
Report | <button text='button label' action='Report' componentLinkName='User_Details' appLinkName='Resource_management' parameters='App_name=${name}' /> or <button text='button label' action='Form' componentLinkName='User_Details' appLinkName='Resource_management' parameters='User_Name='Rob'/> |
Page | <button text='button label' action='Page' componentLinkName='linkname of the Zoho Creator page to be opened' appLinkName='linkname of the Zoho Creator application to which the page belongs' parameters='App_name=${name}' />* |
Note:
- parameter attribute is optional.
- It is applicable only when <action='Form'/'Report'/'Page'/'Function'>
- parameters can either be a static value like: Name='Rob' or a page parameter.
- Page parameter must be specified as : App_name=${name}, where name is the page parameter.
20. successMsg
The successMsg attribute specifies the message to be displayed on successful execution of the associated function.
Possible Values
Example
- <button action='Function' functionName='send_email' successMsg='Sent Successfully!'/>
Note:
- successMsg attribute is optional.
- It is applicable only when <action='Function'>
21. executeWorkflow
The executeWorkflow attribute allows you to specify that an action be executed after confirmation of the same. The confirmationMsg attribute specifies the message to be displayed before execution to confirm the action request.
Possible Values
Example
- <button action='Function' functionName='send_email' executeWorkflow='afterConfirmation' confirmationMsg='Are you sure you want to execute the action?!' confirmButtonText='Yes' cancelButtonText='No/>
Note:
- confirmationMsg attribute is optional.
- It is applicable only when <action='Function'>
22. target
The target attribute specifies the location where the linked action will open on click of the button.
Possible Values
- new-window
- same-window
- popup
Default Value
Note:
- It is applicable only when <action='Link'/'Form'/'Report'/'Page'>
23. popupWidth
The popupWidth attribute specifies a width for the pop-up window where the link will be opened.
Possible Values
- A numeric value in percentage or pixels
24. popupHeight
The popupHeight attribute specifies a height for the pop-up window where the link will be opened.
Possible Values
- A numeric value in percentage or pixels