Field Messages - showFieldMsg()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2012 01:01 PM
I need help embedding a link into a field message.
I have tried the following...
var str = "here";
if (g_form.getValue('service_type') == 'System Request') {
g_form.showFieldMsg('service_type', 'You are submitting a system request; please provide the following additional information regarding your request: \nCost/Benefit Analysis (Please complete the spreadsheet found ' + str.link('www.something_here.com') + ' and attach to this request using the paperclip icon)', 'info', false);
}
The result was...
You are submitting a system request; please provide the following additional information regarding your request: Cost/Benefit Analysis (Please complete the spreadsheet found a href="www.something_here.com">here a and attach to this request using the paperclip icon)
Any help on this would be great. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2015 02:40 PM
First of Dale, this is still a great solution.
However, people with two or more field messages on a form should be wary: the script will select the first field message on display and alter that. For this reason, I recommend making your placeholder text something meaningful, and ensuring that the message altered is the only 'info' message visible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2015 07:46 AM
Hello Dale,
Would you know how to do your proposed solution on Fuji? This does not seem to work anymore in UI15 anymore. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2015 05:50 AM
Nevermind, got it to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2018 10:19 AM
Hi David,
Can you please guide me on how it worked?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2018 10:20 AM
Hi Dale,
That's exactly what I want, but it doesn't seem to work. Can you please guide me.
Thanks