Mandatory asterisk is still red even though the field has value

vai
Kilo Contributor

Hi,

I have a field of type List, I am trying to assign values to it with the help of a business rule...

          proj.setValue("u_users", current.u_user.toString());

i see that this field of type List has red asterisk even though it has value in it.

find_real_file.pngfind_real_file.png

It looks similar to the above one.

1 ACCEPTED SOLUTION

MKelly83
Giga Expert

Hi Vineeth



This occurs in fields which type is list and the system is assigning the value to the field.


You would expect it to be grey since it is populated. You will still be able to save or submit the record without getting the mandatory error message.



You should be able eliminate this by creating a conditional UI policy (make sure Reverse if false is set)


If user is not empty, then set Read only = Leave alone, Mandatory = false, Visible = Leave alone


View solution in original post

7 REPLIES 7

Ct111
Giga Sage

Can you share the business rule and client script if any which you are applying to this table to make Field Mandatory


vai
Kilo Contributor

I made this mandatory by checking the mandatory checkbox at the time of creating column.



find_real_file.png


Hmm would it matter if your code has String in it and it's a list field?



Perhaps it's not the appropriate type of value being put in there and not being recognized fully?



Just a guess...



Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

I don't think that is reason because it is assigning the values correctly, also i tried in the below way and even with asterisk is till red.




    proj.u_users = current.u_user;