How to show Placeholder in Fields whenever it is empty?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 02:53 AM - edited ‎06-06-2024 02:53 AM
Show Placeholder in Fields, whenever it is empty.
For new Records during the manual submit, for on load and of course after every save and update if the Form of the records appears again.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 03:04 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 03:47 AM
Not variables, i maen fields
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 04:04 AM
Hi @Meloper
function onLoad() {
//Type appropriate comment here, and begin script below
var short_desc = g_form.getControl('short_description');
var desc = g_form.getControl('description');
short_desc.placeholder = 'Please provide short details about this change.';
desc.placeholder = 'Please provide details in brief, what exactly this change is about.';
}