Help text mandatory even after checking the checkbox

Abhi_007
Kilo Guru

Hi Team,

I have checkbox with Help text attached to it but whenever i check it the help text get disappear but as per my requirement i have to keep it fixed.

I have attached the help text by using catalog client script onLoad :

g_form.showFieldMsg 
 
Please help me how to keep the help text fixed even after checking the checkbox.
2 ACCEPTED SOLUTIONS

Sainath N
Mega Sage
Mega Sage

@Abhi_007 : Please try changing your script to OnChange by removing isLoading and newValue check, and below is a sample reference to the code that worked in my PDI.

 

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

    g_form.showFieldMsg('test', 'Test Message', 'info');

}

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

View solution in original post

H S B
Giga Guru

I tried below script on my PDI & it works. Make sure you are creating only onChange client script from Scratch, don't use the onLoad one. Deactivate the old-one & create new one making sure all highlighted values are selected properly -

HSB_0-1703266055266.png

 

Make sure to update the variable name in form & in script. Also update catalog-item name as well. 

 

If it solves your issue, please ACCEPT it else please mark helpful.

View solution in original post

8 REPLIES 8

@Abhi_007 : Deactivate your Onload client script. This Onchange will work even for onLoad, as we removed the isLoading validation. Could you share a screenshot of your script to help us better? The script that I posted worked for me. Make sure that your OnChange script is configured in your checkbox variable.

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

H S B
Giga Guru

I tried below script on my PDI & it works. Make sure you are creating only onChange client script from Scratch, don't use the onLoad one. Deactivate the old-one & create new one making sure all highlighted values are selected properly -

HSB_0-1703266055266.png

 

Make sure to update the variable name in form & in script. Also update catalog-item name as well. 

 

If it solves your issue, please ACCEPT it else please mark helpful.

Abhi_007
Kilo Guru

Thank you so much @H S B @Sainath N for your prompt response. It is working now!

Welcome. Cheers Mate 🙂