how can i display info message in catalog form

Lakshmi53
Tera Contributor

Hi All,

below is my requirement.

based on operation i need to display info message like below

1) test1

2) test2 using add info message (i need to use single info message).

Is it possible to get?

1 ACCEPTED SOLUTION

Community Alums
Not applicable

You can use a variable to get multiline. Try below 

var sMsg='line 1<br/>';
	sMsg=sMsg+'line 2<br/>';
	sMsg=sMsg+'line 3';
	gs.addInfoMessage(sMsg); 

View solution in original post

4 REPLIES 4

Dan H
Tera Guru

Hi Lakshmi,

not sure i understand the requirement, could you add more information/examples?

Sounds like youll be able to do what you need with a Client Script but if you could share more information I could be more helpful.

 

Please mark this answer as helpful or correct if it has helped.

Community Alums
Not applicable

You can use a variable to get multiline. Try below 

var sMsg='line 1<br/>';
	sMsg=sMsg+'line 2<br/>';
	sMsg=sMsg+'line 3';
	gs.addInfoMessage(sMsg); 

ersureshbe
Giga Sage
Giga Sage
Hi, If you are using BUSINESS RULE you should use gs.addInfoMessage('type your msg'); If you are using CLIENT SCRIPT You should use g_form.addInfoMessage('Type your msg'); Please mark as correct answer if helped. Regards, Suresh.
Regards,
Suresh.

Saurav11
Kilo Patron
Kilo Patron

Hello

Please share the beloe info to assist you better?

Which form needs the info message?

Assuming its catalog item is it foe one catalog item or all?

Will the message be visible all the time or on condition

Thanks