- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2020 11:38 AM
Hi All,
On our HR Cases, we have a suspend UI Action that brings up a Suspend dialog box. We created a UI Page that shows the Suspended Reasons and an Additional Comments field. The Additional Comments field was originally single line and we were asked to make it a multi line field. So I changed the html on the UI Page to be a <textarea> instead of an <input>. Now when I try to add placeholder text to the textarea, there is a space that overwrites the placeholder text.
On load:
After clearing the space:
Here is the code:
<textarea id="suspend_comments" class="col-sm-9 form-control" required="required" rows="10" placeholder='${Additional comments (Customer visible)}' aria-required="true" name="suspend_comments"></textarea>
Does anyone have any idea why this would be happening or any other solutions to making this a multi line field?
Thank you in advance,
Austin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2020 10:55 AM
I have no clue why this is happening, but as a workaround you could add the following code at the end of the Client Script field in the UI Page record to remove that space character:
$('suspend_comments').value = '';
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2020 10:55 AM
I have no clue why this is happening, but as a workaround you could add the following code at the end of the Client Script field in the UI Page record to remove that space character:
$('suspend_comments').value = '';
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2020 11:29 AM
Thank you