Dynamic Choice Variable: Adjusts rows based on number of users selected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 03:25 PM
Hi all, i am trying to create a custom variable for a catalog item i am working on. Essentially the variable should look like:
-------------------------------------------------
| Assign Roles | read-only | read/write |
| User Name 1 | () | () |
| User Name 2 | () | () |
| User Name 3 | () | () |
...
| User Name x | () | () |
-------------------------------------------------
Where () indicates a radio button and the number of users is dynamic and correlated to the number of users selected on a prior field 'Request for'.
So far, i have created a widget that uses a table in HTML to provide this. With client-side scripting, i am able to update the table when selecting or removing users. I am now stuck on getting the selections made on this table to bind to the catalog item request. Am i taking the right approach here or is there another route i can take to achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 08:48 PM
Hi @JaimeG,
Have you considered using a Multi Row Variable Set for this?
That should makes things much easier.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 09:31 PM
Hi @JaimeG ,
You can use multi row variable set to achieve this kind of functionality. Please refer the below screenshot, that I have created for demo. Here you can update the reference table based on your requirement.
Please accept the solution and mark this helpful, so that it can help other also to get the correct solution for these kinds of requirements.