Show field message

Naveen87
Tera Guru

Hi Developers,

 

I have a list collector field called macro_module.

This variable drop-down does not have an option called 'Knowledge'.

 

When an end user search for 'Knowledge' on this variable. I want to show a field msg.

'For Request related to Knowledge Management, Please use Group Membership Management & select Knowledge Management as group name'
 
 
I wrote this onCchange client script but it's not working. Please suggest
 
Naveen87_1-1707285847682.pngNaveen87_2-1707285927765.png

 

11 REPLIES 11

Hello @Naveen87 ,

I understand your concern, and I agree that having the help text displayed at all times might not be the ideal solution. Unfortunately, achieving the specific behavior you're looking for—showing a message when searching for "Knowledge" in the variable—might not be possible with the current constraints.

 

Considering this, my suggestion would be to include a your note in the help text, such as: "For requests related to Knowledge Management, please use Group Membership Management and select Knowledge Management as the group name." This way, users will have clear guidance when needed.

 

While an onChange client script could be utilized to show a field message when a value is selected, in this context, leveraging the help text directly without scripting might be a more straightforward and effective solution.

 

Please le me know your views and Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks,

Aniket

sourav66
Tera Contributor

Firstly, the condition is a bit wrong, since you're converting the entered string to lowercase you should compare it with "knowledge" instead of "Knowledge".

 

Secondly, the onChange most probably isn't working perfectly on this field as user is not able to select anything when searching for knowledge.

As of now I can't think of a logical way of achieving this, I'll try and if I find a solution I'll get back to you, in the mean time you can add a field or form info message mentioning this case, on the load of this form.