Placeholder text in record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2016 07:30 AM
I would like to set placeholder text in a record producer reference field. Is it possible to do this? I don't want it to be a default value, but just grey placeholder text.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2018 03:10 PM
Man, it would be cool, but that doesn't seem to work for reference fields. You can definitely do it via dom manipulation, which is frowned upon, but you could write a script like this in an onload client script on your record producer:
// get the field id for the reference display field
var dispID = "sys_display." + g_form.getControl('caller_id').id;
// replace the characters that won't work in jquery selectors for IDs:
dispID = dispID.replace(/\./g, "\\.").replace(/:/g, "\\:")
// use jquery to set the placeholder text
$j("#" + dispID).attr("placeholder", "Your Placeholder Text");
This should work in backend views, but for service portal, you will need a different approach entirely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 04:03 AM - edited 07-30-2024 04:07 AM