g_form.showFieldMsg not working in catalog ui policy script

chaithra
Tera Contributor

g_form.showFieldMsg not working in catalog ui policy

find_real_file.png

 

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Chaithra,

 

Can you use below

g_form.setValue('select_an_end_date','');

g_form.showFieldMsg('select_an_end_date','Please select future date','error',true);

View solution in original post

16 REPLIES 16

Jaspal Singh
Mega Patron
Mega Patron

Hi Chaithra,

 

Can you use below

g_form.setValue('select_an_end_date','');

g_form.showFieldMsg('select_an_end_date','Please select future date','error',true);

still it is not working

Add an alert to see if the code block is getting executed or not.

-Anurag

alert is working fine but field error message is not working