Grab Clappia’s 50% OFF Black Friday Deal before it’s gone! Ends 05 Dec 2025.
View offer →
#bf-banner-text { text-transform: none !important; }
Table of Content
Still need help?
Request support
Request Support
Help
 / 
 / 
Data Input Blocks in Clappia
 / 

URL Input

This article explains the features of the URL Input block and how it can be used to design your app.

URL Input
URL Input block

Use Cases

  1. Collecting Website Links: Gather website URLs from users, such as personal websites or business links.
  2. Sharing Resource Links: Capture links to online resources, articles, or references.
  3. Submission of External Documents: Allow users to share links to external documents stored on platforms like Google Drive, Dropbox, etc.

Help Video

Editing the Block

Click on the URL Input block and start editing on the panel that appears on the right side.

URL Input
Editing the Block

URL Input
Basic panel

Label

The label is the name of the block that the end user sees in the app.

Example: Website Link, Document URL.

Description

The description is the additional information provided to the end user, displayed below the input area. You can also leave this blank if not necessary.

Example: Please enter a valid URL.

Default Value

Set a default URL that will be displayed in the field when the app loads. This can act as a placeholder or a sample URL for users.

Example: http://example.com.

Required

Enable this option if you want to make this field mandatory. When enabled, users must enter a valid URL in this field before submitting the form or else they will not be able to submit.

Advanced Options

URL Input
Advanced Options

Display this field if

Use this option to show or hide the field under specific conditions. It accepts the standard Clappia formulae, similar to conditional sections or in the ‘Calculations & Logic’ block.

  1. Type @ to get a list of all the fields you have added in the app and select the relevant field or type @ followed by the field name.
URL Input
Display this field if
  1. Use these field variables to write spreadsheet-like formulae for conditional display of the field in the app.
URL Input
field variables

Retain value if hidden

This option appears once a condition is set in the Display this field if option. Enable this setting if you want the field's value to be retained even when the field is hidden. This is useful for preserving user input in cases where the field may temporarily disappear based on conditions.

URL Input
Retain value if hidden

Example: If the field is hidden based on user selection but you still need to keep the entered value for future reference or calculations, enable this option to ensure the data is retained.

Allow value to be changed after initial submission

This option is enabled by default. When active, end users can edit the URL entered in this field after creating a submission. Disable this option if you want the initial URL to remain uneditable once submitted.

Block Width

Desktop View: Set the width of the PDF Viewer block in the desktop view. Options are 100%, 75%, 50%, or 25%.

Mobile View: Set the width of the PDF Viewer block in the mobile view. Options are 100% or 50%.

Variable Name

This is the unique identifier for the Email Input field, which can be used in formulas or references within the app. This appears automatically after saving your configuration of the URL Input block.

Variable Name

Advanced Label

The Advanced Label option allows you to change the label of a field dynamically based on a condition you define. Instead of always showing the same fixed label under the ‘Basic’ tab, the field can display different labels depending on requirements of the form. Use spreadsheet-like functions such as IF, AND, OR, etc. and make use of other field variables to set your conditions. Type @ and select the field.

This is useful when the meaning of a field changes based on context, business logic, or user choices.

For example:
A dropdown named Link Type contains options like “Product Page” and “Support Page”.
Depending on the choice made by the user, the URL field’s label should change.

So:
– If Product Page, show “Product URL”
– If Support Page, show “Support URL”

Formula:

IF({link_type} = "Product Page", "Product URL", "Support URL")

This allows the same field to adapt its displayed purpose without needing multiple separate fields.

Advanced Description

The Advanced Description option works exactly like Advanced Label, but it changes the description text instead. This is useful when guidance or instructions for a field need to change depending on earlier answers.

For example, using the same scenario from Advanced Label:
If you have a dropdown called Link Type with options like “Product Page” and “Support Page”, you may want the description of your URL field to guide the user differently depending on what they selected.

So:
– If the user selects Product Page, the description could say: “Paste the full product page URL (include http/https).”
– If the user selects Support Page, the description could say: “Paste the support article URL or ticket link.”

Formula:

IF({link_type} = "Product Page", "Paste the full product page URL (include http/https).","Paste the support article URL or ticket link.")

This helps users understand what is required from them without showing unnecessarily long or irrelevant instructions.

Additional Examples (Apply to Both Advanced Label and Advanced Description)

1. Showing nothing until a selection is made

For example, if you have a dropdown field called Visit Category with options “Routine” and “Urgent”, you may want the label or description of a field to remain blank until the user first selects a category.

Once a selection is made:

  • If the user chooses Routine, the field will display “Routine”.
  • If the user chooses Urgent, the field will display “Urgent”.

Formula (can be used in either Advanced Label or Advanced Description):

{visit_category}The label/description stays empty until the dropdown has a selected value.
After the user picks an option, the selected text (Routine or Urgent) becomes the label or description.

2. Changing label/description based on language selection

For example, if your form includes a dropdown field called Select Language with options English, Spanish, and French, you can show the label or description in the selected language.

So:

  • If the user selects English, show English text.
  • If the user selects Spanish, show Spanish text.
  • If the user selects French, show French text.

Formula (can be used in either Advanced Label or Advanced Description):

IF({select_language} = "English", "Enter details", IF({select_language} = "Spanish", "Ingrese detalles", "Entrez les détails"))The formula returns the text for the selected language.
Only one label/description is shown at a time, depending on what the user picks in the Select Language dropdown.

Important Notes (applies to both Advanced Label and Advanced Description)

1. Variables do not change
When a field is created, its variable name is derived from the label you set in the Basic tab. That variable name is what you must use in formulas, workflows, and other logic. The visible label or description shown by Advanced Label / Advanced Description does not change the variable name.

2. Submissions tab: table view vs right panel
In the Submissions area, the table view always displays the labels from the Basic tab. When you open an individual submission, the right panel shows the labels and descriptions as they appear in the form (i.e., the Advanced Label and Advanced Description applied for that submission). This keeps the submission list consistent while letting reviewers see the context-aware labels and descriptions when viewing a record.

3. Bulk Edit shows Basic tab labels and descriptions
When you need to Bulk Edit submissions, the spreadsheet you download shows the labels and descriptions from the Basic tab only. Advanced Label and Advanced Description are not applied in Bulk Edit, so keep that in mind when preparing bulk updates.

4. Some fields cannot be used inside Advanced Label/Description formulas
Certain block types do not expose a variable that can be referenced in Advanced Label or Advanced Description. If a block does not expose a variable, you cannot use it inside the formula.

Geo Address

GPS Location

PaymentGateway

Audio

Live Tracking

Signature

Code Scanner

Nfc Reader

Get Data from RestApi

Get Data from Other Apps

Get Data from Google Sheets

Get Data from Database

AI Block

Text, HTML & Embedding

Attached Files

Image Viewer

Video Viewer

PFD Viewer

Code block

Progress Bar

Action Button

Using the Block in App Home

In App Home, users can enter URLs in the URL Input field. If an invalid URL is entered, an error message will appear, indicating that the format is incorrect. The block accepts all forms of valid URLs, whether they include http, https, www, or other common URL formats, as long as they are valid URLs.

Using the Block in App Home
URL Input
Using the Block in App Home
FAQs
What URL formats are supported?
The field accepts standard URL formats such as links starting with http, https, or www, as long as the URL structure is valid.
What does “Retain value if hidden” mean?
When enabled, the entered value is retained even if the field becomes hidden due to a condition. If disabled, the value is cleared in the Submission tab when the field becomes hidden.
This is useful when the value may be needed later in workflows or calculations.
Can I show or hide the URL field?
Yes. You can choose to show this field only when certain conditions are met. For example, the URL field can appear only if a user selects “Yes” in another field, or only for a specific option chosen earlier in the form. This can be done using the Display this field if option by setting conditions similar to a spreadsheet.
What is the URL Input field used for?
Use the URL Input field when you want users to submit a valid web link, such as a website URL, an online resource, or a link to an external document (for example, a Google Drive or Dropbox file). This field ensures that only valid links are accepted.
What does marking the field as Required do?
When enabled, users must enter a valid URL before they can submit the form else the form will prevent them from making a submission if left empty.
What is the Variable Name used for?
The Variable Name is a unique identifier for the field and is used in calculations, conditions, workflows, and integrations. It is automatically generated from the label but can be edited. To use it in, say, calculations, type @ and you will get a list of the variables of the app for you to use.
Can the URL be changed after submission?
Yes. If Allow value to be changed after initial submission option is enabled, the URL can be edited later in the Submissions tab, depending on user's app permissions.
What is the Default Value used for?
The Default Value pre-fills the field with a sample or commonly used URL when the form loads. Users can edit or replace it before submitting.
What happens if a user enters an invalid URL?
If the entered value is not in a valid URL format, the app shows an error and prevents submission until a valid link is entered or the field is blank while not marked as a Required field.
Try our free plan
It will answer many more questions within just 15 minutes.