g_form.setValue is not setting value for a Integer-data type field through Client Script

Community Alums
Not applicable

Hi,

I am unable to set the value of a field whose data type is Integer through Client script. The field is blank when the Client script runs. Anyone faced this issue?

Below statements did not work-

g_form.setValue('integerDataTypeFieldName', 75);

OR

var a = parseInt(75);

g_form.setValue('integerDataTypeFieldName', a);

 

Thank You!

18 REPLIES 18

Harsh Vardhan
Giga Patron

make sure field backend name is correct. can you add some screenshot ?

 

 

Community Alums
Not applicable

Yes sure ...

My onChange Client script- (Please note the Script include just returns the value held by all the fields I included in the variable 'fields' Line 7)

find_real_file.png

The alert which confirms my client script is receiving the number "78" for the field "u_percentage_of_work"

find_real_file.png

 

The back end field name matches-

 

find_real_file.png

 

But Integer field is auto-populated with empty value-

 

find_real_file.png

just confirming , on your client script rest of the other field has been populated only "u_percentage_of_work" field has not set ?

Community Alums
Not applicable

Yes correct