1
0
-1

I have a field which has got the asterisk switched on to designate a mandatory requirement.

 

When I call this function: 

 

sfc.updateMandatoryStatus({node},false,'');

 

On the  node in question... then the field correctly is no longer validated in submission

 

However, the asterisk remains Why ? and how can we clear it without resorting to an HTML hack.

 

Composer 4.1 SP2

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      When a field is designated always mandatory it adds the mandatory marker but not the flag that we use to detect the marker for removal at runtime. Changing it from Always Mandatory to Script Based and having the script simply be "return true;" will get this to behave as expected for you.

       

        CommentAdd your comment...