Show multiple text box dynamically based on value entered
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2018 12:08 AM
Hi,
I need to create textboxes(input fields) based on the value entered on another text box.
For eg, if the value entered is 5, i need to create 5 text boxes to accept 5 inputs.
Is this possible to implement?
Thanks.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2018 12:14 AM
Have you checked this - https://community.servicenow.com/community/operations-management/event-management/community?id=community_blog&sys_id=7cc66514db882380e0e80b55ca961965 ?
Is your instance on London?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2018 12:33 AM
No, mine is Kingston version and the link doesn't shows an error message as "The content you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may have expired, or you may not have permission to view this page."
Thanks for the response.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2018 01:03 AM
Hi Balaji,
do you refer to catalog variable or to field type string here? If the latter, best is to create the needed fields and depending on the choice on the trigger field to use UI Policy to show/hide. If the case is for cat item , you can use similar approach or best (in my own opinion of course) an UI Macro, in which you can script this, so depending on the selection/input, different number of elements are created. If you use the service portal, you can try it with using Angular directly, this will make your fields much more robust and nice looking (not to mention easy to implement) than plain Jelly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2018 01:21 AM
Hi Joro, thanks for the response.
Problem is since the fields has to be created based on user's input(max is unpredicatable and if I create many such, it may hit performance and best practice).
Having said this, I shall try creating UI page since form is going to be accessed an end-user with no role. But creating UI page will double my efforts since right now, I'm creating a form from the custom table and showing it in the service portal using id='form' attribute.
I shall analyse to find the feasible solution based on your inputs.