Custom depending visibility condition

CSS Team asked on June 29, 2021 15:38

Hello everyone,

I was wondering if it is possible to create a custom depending visibility condition that depends on multiple fields, not just one.

Is there any meaningful way to achieve this? Will this be possible in the near future?

Thanks, Florian

Correct Answer

Juraj Ondrus answered on June 30, 2021 07:15

In general you can create a custom macro which will return true or false. In the code of the custom macro you can check the values of multiple fields...but the depending fields always work 1 to 1 field only. If you need to make it more complicated and compare more fields, more combinations I would rather recommend creating a custom form control which will consist of multiple fields - the fields you need and then in the code behind you can easily control and manage values in all the fields.

0 votesVote for this answer Unmark Correct answer

Recent Answers


CSS Team answered on June 30, 2021 10:47

I see. Is there a way to force form posts on field value changes. This seems to be the case for dependent fields but not for the rest of the fields which makes it hard to take any server side actions.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on July 2, 2021 07:17

You would need to set the fields dependencies for all the fields you want to make the postback. Or, adding a custom JS code to do the trick.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.