leave Link / URL field unlocked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 03:19 AM
Hello Everyone,
How to unlock URL Field by default on form ?
I have tried below links but no luck -
1.https://www.servicenow.com/community/spm-forum/leave-link-url-field-unlocked/m-p/1009060
Currently I am on Sandiego Version
Thanks in advance !
Pooja Kamble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 03:36 AM
Hi @pooja79 ,
You can try the following client script:
function onLoad() {
var urlField = g_form.getControl('field_name'); // replace "field_name" with the actual name of the URL field
urlField.removeAttribute('readonly');
}
If my response was helpful in resolving the issue, please consider accepting it as a solution by clicking on the ✅Accept solution button and giving it a thumbs up 👍. This will benefit others who may have a similar question in the future.
Thank you!
Ratnakar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 04:21 AM
Hi @Ratnakar7
Thank you so much for your quick response.
I tried this solution but still no luck. What should I do with system Property?
Thanks,
Pooja Kamble