Info Message Client Script

Russell Park
Mega Guru

I am trying to add a blue bar info message under a field with a client script.  I want the info message to be several lines.  How can I do a line break on the info message to have the message show on multiple lines?  I want it to look like the below but I have tried a few different options and it just puts in on the same line.

5 - Exceeds

4 - Meets

 

function onLoad() {
    g_form.showFieldMsg("u_review", ("5 - Exceeds" +  + "4 - Meets"));
    callback(saveAndClose);

}

find_real_file.png

1 ACCEPTED SOLUTION

I just put an alert to confirm.

You can comment out the alert line in your code.

find_real_file.png


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

View solution in original post

10 REPLIES 10

It shows on 2 different lines but not the type of info message I was looking for.  I like the blue bar message right below the field.

 

find_real_file.png

I just put an alert to confirm.

You can comment out the alert line in your code.

find_real_file.png


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Thank you Prateek I was able to get his to work.  I appreciate your help and have marked this correct.

 

Russell

Anurag Tripathi
Mega Patron
Mega Patron

dvp
Mega Sage
Mega Sage

You can can have two showFieldMsg stataments

   g_form.showFieldMsg("u_review", "5 - Exceeds");
   g_form.showFieldMsg("u_review", "4 - Meets");