In Progress

Can't change visibility with expression

I've tried using an expression to amend visibility.

I've got a search control called "Site ID" - I have a nested form that has a visibility expression that when "Site ID" is not empty, make the nested form visible.

However, when a value is entered into "Site ID", nothing changes. I've tried adding a "Refresh" in the Actions & Validations but it doesn't make a difference.

Alternatively, I've tried setting the visibility of the nested form to "Yes" and having the Actions & Validations set the form to not visible if "Site ID" is empty, but the fields inside the nested form are blank (for some reason?) - If I add a refresh to this, it updates the fields in the form but I get an error saying that "There are too many actions performing iterative calls."

Any ideas?

Comments (3)

photo
1

Dear Kristian

Thank you for your question.

The other alternative you can try is having an expression for the visibility of your nested form. To add a visibility expression perform the following steps:

1. Open your main form

2. Select the nested form

3. On the Form Properties window, select "Expression" in the visible drop down

4. Configure your Expression to below as an example (use Any):

a. Site.SiteID is not empty

b. Site.SiteID is not null

I am assuming Site is your entity that has SiteID attribute.

In this case the nested form will display if SiteID is not null or is not empty.

Hope this helps !

Best Regards

photo
1

Hi Rajesh,

As mentioned in the question - my first attempt was to use an expression on the nested form so it would become visible when Site ID is not empty (the first sentence of the question). This didn't work, even if I used an action to refresh the form on change of Site ID

photo
1

Dear Kristian

Can you please attach screenshots of your form, nested form and the expression you have configured.

We look forward to hearing from you.

Best Regards