Skip to main content

I have a few fields in my form, which are conditionally mandatory(ex: based on dropdown value change). I want the asterisk(*) to appear when the field becomes required and disappear when the field is not required.


ex: Field label is "Name", when the field is required label has to be Name * 
                                         ,when the field is not required label has to be Name

Hi @akshaybm,


apply your "required" logic to a hidden asteriks control and only show it, when the field is required.


8235iFC84540E2AFB7059.png


 


 


@Tarf @akshaybm Thanks for discussing on this. Could you please elaborate the solution a little more, how do we apply "required" logic to a hidden asterisk control.


Hi @Joe_PSD,


based on the rules you set up to make a field required you would also show the asteriks control.


For example:
You need to make a second approver mandatory if the expenses listed on a form are greater than 500€.
You have the controls {Amount-Expenses} and {Approver-02}


To make {Approver-02} required, you set up the rule validation rule
"{Amount-Expenses} > 500 && isNullOrEmpty({Approver-02}) ".
To show the asteriks next to {Approver-02} once it is mandatory, you would apply a formatting rule to it: "{Amount-Expenses} <= 500" - hide.
This way the asteriks will be shown as soon as {Approver-02} is required. 


Reply