How to change data type of a field using on change script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2022 01:22 PM
Hi All,
In portal we have a field called "Action" in that three 3 values are there i.e Add, Update, Delete
My requirement is when user selects "Add" option from action field then the entire form should be a new form then user should enter values manually not from drop down list. How to achieve this requirement any suggestions please
When User select "Add" from Action field then all the field types should change from drop down to single text then only user can manually enter values.
Currently all fields are drop down it should change to single text after selecting "Add" from Action field
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2022 04:00 PM
Hi, I would think the best solution would be 2 groups of variables.
The existing variables which are mapped to specific data
and a new set\group of text\string variables specifically for your 'add' requirement.
You can then show or hide the correct variables with a UI policy based on the 'action' that is selected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2022 09:58 PM
Hello Srinivas,
I believe that is not possible and also that is not recommended to do even if you are able to do these. You should create the text fields separately and should show/hide using UI policy based on the option selected in your Action field. This is the better way to do it.
Also when you implement such type of requirement by some customization then there is alway a performance impact on your system. We should try to keep the customization as low as possible.
Please mark my respsone as helpful/correct, if it answer your question.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2022 11:23 PM
Hello Srinivas,
Just wanted to check with you, if the above response answered your question. If yes, then please do close this thread/question by marking the appropriate response as correct.
If you still need any further help or guidance on this then please update those on this question.
Thanks