Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Darshan Hiranandani : How to Dynamically Add Multiple Sets of Variables in a Form?

Darshan Hiranandani December 23, 2024

 

 

Hi all,

I’m Darshan Hiranandani, working on creating a new request type and need a bit of help. The form I'm designing has 10 fields (of various types), and the goal is for the user to be able to add as many rows as needed, each row containing values for all 10 fields. Essentially, this is like a table structure where the fields are the columns, and the user can add multiple rows, filling in the fields each time.

From my research, it seems that achieving this kind of dynamic, row-based input might require an additional tool or custom solution. I’m wondering if anyone has worked on something similar and can suggest a way to implement this? The key requirement is that I need to be able to dynamically access each "cell" in the table, so I can use the values as smart values in other parts of the system.

Looking forward to hearing your suggestions or any alternatives that might work!

Thanks in advance!

Darshan Hiranandani

1 answer

2 votes
Tomislav Tobijas
Community Champion
December 24, 2024

Hi @Darshan Hiranandani ,

I'm guessing you're using JSM Forms in your request types.

Natively, there is no 'good' solution when it comes to this. I know some of my colleagues simply added 'bigger table' with multiple rows so customers can input values. There's an upper limit of course but it was efficient enough.

Here's a feature suggestion for what you've asked: JSDCLOUD-10736: Form Tables: Allow rows to be added when the last row is completed 

Alternatively, you could add each row in a separate section and then add a checkbox or something which, when marked, would display next section. Again, this would probably have max. limit but might be some kind of workaround if that's acceptable.

2024-12-24 09-15-57.png

As for Marketplace solutions, personally I didn't test any that would fit this requirement.

Hope this helps.

Cheers,
Tobi

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events