Dynamic Label from field values

Working in Application Studio…I’ve added a custom label and want to dynamically update the text based on values of other fields on a form, specifically checkboxes.

As an example let’s say I have checkboxes A and B. If A is checked and B is not checked then I want the label to say “Only A is checked.” If A and B are checked then I want the label to say “A and B are checked” and if A is not checked and B is checked then the label will say “Only B is checked”.

The label needs to be correct when the form loads and when A changes or when B changes.

Can I do all of this in one custom event or do I need to create an event for Form Load, A changed, and B changed?

Any suggestions?

1 Like

Dynamically changing a field based on two values can be done in one event - with two or three condition widgets.
The hard part in this will be updating the text of the label - I know I’ve seen someone around here doing it, but it is not as straightforward as using a row-update. I think it was a matter of using a property-set widget, but I don’t remember the name of the property that has the label text.

The property is labelText.

2 Likes