-
Marco_RomanoDomanda del 27 luglio 2024 alle ore 19:31
-
Ericson_BRisposta del 27 luglio 2024 alle ore 19:48
Hi Marco,
Unfortunately, you cannot create a condition that includes the city in an address field. As a workaround, we can use the Substring widget to acquire the city's value, which we will then use to set the condition. Let me show you how:
First, we'll get the Field ID of the city from the address field.
- In Form Builder, select the form element’s gear icon to open properties.
- In the properties panel, go to Advanced at the top.
- Scroll down to the bottom and expand Field Details.
- Copy the value of the City in the Field ID.
- In Form Builder, click on the Add Form Element menu on the left side of the page.
- Under the Widgets tab, enter Substring in the search bar, and drag and drop the widget to your form.
- In the widget settings, enter the City's field ID.
- Then, enter 0 for the substring start and 5 for the substring end.
- Go to Settings at the top.
- Select Conditions on the left.
- Add a new Show/Hide Field condition.
In this demo form, the conditional logic is as follows:
Note to hide the Subsctring widget so that it is not displayed on your form. I only show it on my demo form so you can see how it works.
Give it a try and let us know if you have any other questions.