How to g_form.showFieldMsg(); above the variable rather than below?

nicksoltis
Kilo Expert

As of now, I have been trying to use a onChange catalog client script to only show a message above a field when a certain question choice is selected. Lets call the question choice 'x' and the variable to show the message is 'y'.

So...

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

        if(choice == 'x'){

                  Show message above 'y';

        }else{

                  Don't show the message;

        }

}

I can g_form.hide/showFieldMsg(); but it places the message below the variable. I need it to be above.

Please let me know if there are any easy ways to do this first.

Thanks,

Nick

1 REPLY 1

samiul1
Tera Expert

There is no oob methods available to show messages on top of fields/variables.



UI Info and Error Message Cheat Sheet - ServiceNow Guru