clearValue() is not working in ClientScript

venkatrajesh
Tera Expert

Hi All,

code in client Script:

function onChange(control, oldValue, newValue, isLoading) {

   

find_real_file.png

clearValue is not working so i have used   g_form.setValue('assigned_to','');

may i know why clearvalue() is not working?

6 REPLIES 6

harishdasari
Tera Guru

Hi Venkat,



remove if(isLoading) {


from the above code and try once again using clearValue(), then this should work.



Thanks


amlanpal
Kilo Sage

Hi Venkat,



That's interesting. I have tried the same script in my personal instance and it worked with clearValue properly. Please make sure that you are testing properly. Just for your reference I'm providing the code snapshot below:find_real_file.png



I hope this helps.Please mark correct/helpful based on impact


haseena ayesha
Kilo Guru

Hi


Venkat



Amlan Pal is correct, for me also code is working properly,   please check it once..




Thanks & Regards


Haseena



                                                                        PS: Hit like, Helpful or Correct depending on the impact of the response


Hannah C
Giga Expert

For me it only works if you change the UI Type on the client script to "All" instead of just "Desktop" so try that!