What is the "state" of a Display Form and how can I use it?
I see the .state used in expressions to get the value of elements in a form.
In the documentation, I find only the following:
state : A form's state output gives you access to the individual inputs that the user entered in the form.
-
Hi Nico,
The .state provides access the Display Form's elements.
For example, if you have a Display Form with a Check Group in it, if you wanted to access the value of one of the Check Boxes within it, you would use this syntax: =$CheckGroupForm.state.CheckGroup.items[0].checked
CheckGroupForm is the Display Form activity and CheckGroup is the ID of the Check Group form element that I have configured within it.
Thanks, Stefan
0 -
Yes, I know this. But it raises the question why it is not just
=$CheckGroupForm.CheckGroup.items[0].checkedIs it related to the state concept in React?
0
Please sign in to leave a comment.
Comments
2 comments