- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 09:46 AM
I have a date field which I want to restrict users from manually entering the values instead only use the calendar icon to pick. Is this possible?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 11:38 AM
Another approach is to use a UI Policy with Run scripts and On load checked, and Isolate script unchecked. Use a script like this in the Execute if true box
function onCondition() {
var $ = this.jQuery;
$('input[id="table_name.field.name"]').attr('readonly', true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 11:25 AM
Do you want this restriction within Service Portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 11:34 AM
On the portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 11:38 AM
Another approach is to use a UI Policy with Run scripts and On load checked, and Isolate script unchecked. Use a script like this in the Execute if true box
function onCondition() {
var $ = this.jQuery;
$('input[id="table_name.field.name"]').attr('readonly', true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 11:42 AM - edited 02-18-2025 11:43 AM
Perfect, that worked. Thank you