how to make reference field readonly in UI page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:00 AM
I want to make reference field readonly on popup window using UI page. earlier I added that but still it is replacing with other value after making it readonly
still it is giving me to change incident number after making readonly.
code in ui page :
html:
client script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:03 AM
Hi @fgh1
why don't you use the correct HTML syntax to make a field read-only?
See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:14 AM
In normal html it is working but in UI page it is not reflecting by making it readonly="readonly"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:08 AM
Hi @fgh1,
Use this line of in ur code & check if it helps
<g:ui_reference name="incident" id="incident"
table="incident" value="${jvar_pref}" displayValue="${jvar_pref2}"/ readOnly><br/><br/>
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:21 AM
it is giving syntax error