- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 10:40 PM
Hello Team,
I have requirement to add long text in the catalog form. I am able to do it using showFieldMsg .
How to break lines in the showFieldmsg ?
example below text has to show using showFieldMsg
Please suggest me.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 11:22 PM
Hi @vinod9,
Take a look at old thread - Line break in g_form.showFieldMsg?
You have to add two field message to show as in new line.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 11:32 PM - edited 04-20-2023 11:33 PM
Only two colors are possible red/blue as @Sagar Pagar suggested,
g_form.showFieldMsg('fieldname', 'message', 'info'); // blue
g_form.showFieldMsg('fieldname', 'message', 'error'); //red
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 11:16 PM
g_form.showFieldMsg() doesn't supports line breaks.
Instead of this you can add multiple messages.
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 11:22 PM
@Prince Arora Thank you for your reply.
is it possible to set the background color to showFieldMessage ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 11:22 PM
Hi @vinod9,
Take a look at old thread - Line break in g_form.showFieldMsg?
You have to add two field message to show as in new line.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 11:26 PM
@Sagar Pagar Thank you Sagar
is it possible to set the background color to showFieldMessage text ??