- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-01-2019 11:14 AM
Cloned the "Form" widget and now trying to make couple of fields read-only. Can't use UI policy/BR/ etc. It needs to be done on portal only. appreciate the help!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-03-2019 03:44 AM
Hi,
Actually you can do that on the cloned version of your form widget itself.
Try to search for g_form = gFormInstance; line in client controller and then below this you can use usual g_form function like g_form.setReadonly(). I did this for the number field in personal instance where number is an editable field at backend on the incident form, but i wrote the g_form.setReadOnly() function for the number field it became read only on form page in portal.
However, i would suggest you to be careful while adding the functions on the form widget's controller because this is going to be used for various others tables too. So make sure you are doing the necessary checks like for table name,etc.
Mark this answer correct or helpful if works!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-03-2019 03:44 AM
Hi,
Actually you can do that on the cloned version of your form widget itself.
Try to search for g_form = gFormInstance; line in client controller and then below this you can use usual g_form function like g_form.setReadonly(). I did this for the number field in personal instance where number is an editable field at backend on the incident form, but i wrote the g_form.setReadOnly() function for the number field it became read only on form page in portal.
However, i would suggest you to be careful while adding the functions on the form widget's controller because this is going to be used for various others tables too. So make sure you are doing the necessary checks like for table name,etc.
Mark this answer correct or helpful if works!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-03-2019 09:18 AM
You rock!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-04-2021 12:20 AM