We can use g_form.showErrorBox("variable_name" , "message info", true) instead of g_form.showFieldMsg()("variable_name" , "message info", "error", false) in london version

Shantharao
Kilo Sage

Hello All,

 

We can use g_form.showErrorBox("variable_name" , "message info", true) instead of g_form.showFieldMsg()("variable_name" , "message info", "error", false) in london version

Thanks

1 ACCEPTED SOLUTION

Shantharao
Kilo Sage

I have used an alternative solution I have used alert("message") function instead of g_form.clearValue("variable_name") or g_form.setValue("variable_name" , " " ), Now it is working fine

 

Thanks

View solution in original post

3 REPLIES 3

Hardik Benani
Mega Sage
Mega Sage

We had the same issue and is know issue on portal:  PRB1306928, it's supposed to be fixed on LP6

In the meanwhile if you need a workaround, please use below steps:


Steps to apply the workaround:
1 - import the XML of the UI script attached into the affected instance
2 - Navigate to the Portal record (sp_portal table) and enter the Theme record associated with it
3 - On the bottom, click 'New' on the related list "JS includes" and fill the UI script field with the "showFieldMessage_fix.js" UI script added.
4 - Submit and Save the theme

Note: If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list."

 

Shantharao
Kilo Sage

I have used an alternative solution I have used alert("message") function instead of g_form.clearValue("variable_name") or g_form.setValue("variable_name" , " " ), Now it is working fine

 

Thanks

We can use g_form.showErrorBox("variable_name" , "message info", true) instead of g_form.showFieldMsg()("variable_name" , "message info", "error", false) in london version