A Zoho Creator URL field allows you to specify a URL (Web address) with link name, title and target. The URL submitted through a form is displayed as a link in the View. Selecting the link will display the website to the viewer.
Screen-shot of a Form with URL Field type and its view that displays the URL as a link
Refer the topic Field Configurations to learn more about the other field configuration.
The String datatype is used in scripting for URL field type.
Setting a field to Mandatory, forces the user to fill a value for the particular form field.
To make a field mandatory through GUI, please refer the following link.
To make a field mandatory through script,
For example, the sample script shown below indicates the user that the field value is mandatory and requires data to be entered in the field.
In the above code, input.url is the field where the field value is mandatory.
The permission option supports the show/hide functionality to create forms that hide the information from the user or adjust the fields while the user is entering the data . There are two possible ways to perform this action.
To enable the show/hide functionality from the GUI, please refer the following link.
In the Form Actions -> on add ->on load script of the form, hide the required fields, as shown in the below syntax.
1) You can set a URL field type with the required URL, Link Name and Target using Set Variable Deluge task. In the following sample code, input.Url_Field is the name of the url field in the form, https://www.zoho.com is the URL to be set, ZOHO site is the title that will be displayed and target=’_blank’ opens the url in a new window. The script must be added to the Form Actions ->on add ->on success block of the form.
2) The following Deluge script returns the URL without any html tags from a URL field. Add the following code to the required Form Actions block.
Test_Form is the deluge name of the form.
Url_Field is the deluge name of the URL field in the form.
value holds the URL name without any HTML tags.