how to clear one field value at first time loading

kamleshrathore
Kilo Contributor

hi team ,

i have field assignee that field value should be empty at the first loading time

and if we are selecting this field value and if i save this value then this field should not be empty.

please help me how to do this

13 REPLIES 13

Abhinay Erra
Giga Sage

You can use an onLoad client script and put this in there



if(g_form.isNewRecord()){


g_form.setValue("your field name",'');


}


Right but the bigger problem is that he's got a value sitting there on-load in the first place.   Why is that?   Some logic must have populated it already.


I agree, but it can be default value set at the dictionary level. If that is the case creating a new onLoad client should do. or else as you mentioned tweaking the existing onLoad client script will get him there.


Hi Abhinay,



if directly i am going to create change form and creating change record


there   i am getting the assignee field fine no opend by field value is populating




but if i am creating the change form from record producer then only bydefault opend by field value is taking



i have checked all client script and business rule nowhere assignee field is mapped by opend by field



is there any other reason because of that it is auto populating




by record producer in the assignee field select value is based on the assignment group that is ok


that is coming in the assignee select but issue is only why it is taking the default value same as the opend by value


find_real_file.png


find_real_file.png


find_real_file.png