Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Add dynamically fields in a form.

ayordanov
Kilo Contributor

I want to make a form that has a dynamic number of fields, but the same (strings). There will be "+" button which adds a field, till the user doesn't need anymore. Something like the filter and its "and", "or" buttons. Is it possible and what workarounds has this problem?

1 ACCEPTED SOLUTION

Any of these will work


Client scripts, UI macros, UI pages



If you want the whole page to be custom then UI Page, if just part then UI Macro or Client Script.   It all depends on what the over all goal is and that will dictate the how.


View solution in original post

6 REPLIES 6

DrewW
Mega Sage

This is possible but there is no mechanism built in, you have to write all of the client side java script yourself.


ayordanov
Kilo Contributor

Can you be more specific what should I use? Client scripts, UI macros, UI pages or Formatters?


Any of these will work


Client scripts, UI macros, UI pages



If you want the whole page to be custom then UI Page, if just part then UI Macro or Client Script.   It all depends on what the over all goal is and that will dictate the how.


Julian Hoch
ServiceNow Employee
ServiceNow Employee