Not a Problem

Change visibility is not working when attribut is not visible when form is opening

Hi,

There's a problem with visibility status and "change visibility for" in "Actions & validations".

I have a attribute A1 (Yes/No properties) with a default value defined in advanced tab to "Yes".

I have a text attribute A2 with a expression in basic tab to define his visibility ; the boolean expression is "A1 is equal to false".

1) I have an action defind in "Actions & Validations"

when A1 changes

then refresh A2

When i open the form, A2 is not visible but when i change the value of A1 to false, A2 remains hidden

Contrariwise, if the default value of A1 is "No", it's working : when i open the form, A2 is visible and when i change the value of A1 to false, A2 becomes hidden

2) The problem is the same if i replace my previous action by :

when A1 is true

then change visibility for A2 to false

else change visibility for A2 to true"

So, "change visibility" is only working if the attribute is visible when the form is opening.

photo
0

Dear Philippe,

We have tested your procedure and it works correctly. In addition, We have followed the first example according to this article: Actions_over_controls

If you consider that there is a problem there, please send us a screenshot of Actions and validations table

Regards

photo
0

Hi Juan,

Thank you for your tests. I have re-tested and it doesn't work.

I've attached a test application to demonstrate the problem : A1 is vBoolean and A2 is vString.

In the backup, the default value of vBoolean is yes and when you click on no, vString becomes not visible.

If the default value of vBoolean is no (or if you save the case with a no value), when you change vBoolean, the visible status of vString changes.

photo
0

Dear Philippe,

Thank you for your backup. It was clear for me. The best way to work the visibility is include all in Actions and validations. In the second task of your project, I have modified to work correctly. I have added the action and remove the visibility rule.

Best Regards

photo
0

Hi,

Sorry but your solution is not working as you'll see in the joined video.

photo
0

Sorry, sorry, it works : i've restored Solution.bak but, apparently, it was not modified and so my test is not working.

But after removing the visibility rule and modifying the action, it's ok.

Thank you