How to get the red mandatory mark for a form section?

mitzaka
Mega Guru

Hi SNC,

 

A question about mandatory fields. Here's the setup - I created an additional section on the change form, which has a number of new fields in it.

I wrote a UI policy which makes one of them mandatory. However, I am facing few issues here:

 

1. There is no red mark line on the new section (new one is called Impact, and the old one called Schedule does have it)

find_real_file.png

 

2. The little star which sits top left of the mandatory field is not RED, but BLACK for some reason... I have other mandatory field on the form, which have the RED star. That seemed weird to me...

 

3. Despite the fact the field is mandatory, I can still create changes without filling it in.

 

Any ideas on where I might be wrong?

1 ACCEPTED SOLUTION

craig_granier
Giga Contributor

As others have stated your issue is b/c you have a check box.   As a work around you can replace the check box w/ a string field w/ a drop down with 3 values ('--None--', 'Yes', 'No').       Once you make this new field mandatory the flag on the tab should show up.



Also on the drop down...don't add a value of '--None--'...just be sure to show --None-- in the dictionary entry for the field.


View solution in original post

4 REPLIES 4

Harish Murikina
Tera Guru

You made checkbox is mandatory so currently checkbox having value is false. So the field is filled that is why impact not showing red.



You can fill mandatory fields under schedule job . once you fill mandatory fields scheduled tab will become like impact tab



Regards,


Harish.


Kalaiarasan Pus
Giga Sage

checkbox is having the value always .. Either true or false (Checked/Unchecked). So logically speaking , it is never empty...


Hence never mandatory > therefore no mandatory symbol on the section


craig_granier
Giga Contributor

As others have stated your issue is b/c you have a check box.   As a work around you can replace the check box w/ a string field w/ a drop down with 3 values ('--None--', 'Yes', 'No').       Once you make this new field mandatory the flag on the tab should show up.



Also on the drop down...don't add a value of '--None--'...just be sure to show --None-- in the dictionary entry for the field.


You guys are fast:) That was stupid of me not to guess it... anyway, I replaced the true/false with a choice field and now it all looks and works fine:)



Thanks! Rock'n roll!