How to Hide Help Text on Client script

venkateshdhanap
Tera Contributor

Hi All,

I am having 2 fields
user_type and end_date, End date having help text but its always visible

but i need to show help only if "user type" is "employee".

I am using Istanbul version.

How to to hide help text for user type other than Employee?

Thanks!!!

5 REPLIES 5

DilipKumar DJ
Kilo Guru

Hi Venkatesh,



You can use g_form.showFieldMsg and g_form.hideFieldMsg. Something like:



g_form.hideFieldMsg('end_date', true);


if (g_form.getValue('user_type') == "employee")


{


g_form.showFieldMsg('end_date','your help text','info');


}


Hi Dilip,


Thanks for the response


Its is working but i need to hide help text.Field message is showing boder than the help text.


Thanks


Venkatesh


Hi Venkatesh,



Disable the help text for that field or attribute. You can do that using configure variable.


Please provide screenshot