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

  • 19 June 2020
  • 3 replies
  • 18 views

Badge

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


3 replies

Badge +8

Hi @akshaybm,

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

8235iFC84540E2AFB7059.png

 

 

Badge +1

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

Badge +8

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