akshaybm
Canvas Initiate

How to make asterisk appear dynamically(conditional mandatory) near a label in nintex form

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

0 Kudos
Reply
3 Replies
Tarf
Design Canvas Artiste

Re: How to make asterisk appear dynamically(conditional mandatory) near a label in nintex form

Hi @akshaybm,

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

Tarf_0-1592892404210.png

 

 

0 Kudos
Reply
Joe_PSD
Canvas Initiate

Re: How to make asterisk appear dynamically(conditional mandatory) near a label in nintex form

@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.

0 Kudos
Reply
Tarf
Design Canvas Artiste

Re: How to make asterisk appear dynamically(conditional mandatory) near a label in nintex form

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. 

0 Kudos
Reply