Multiple Catalog Items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 03:57 PM
I've created a Catalog Item that allows users to request a product be added to a catalogue. The form has 11 fields on; the Requester and then 10 fields relating to the product. I want users to be able to add multiple products in one go. I see it working like an Order Guide, i.e. the user completes the Requester field and the number of products they wish to add via a multiple choice field [1-10]. When they click Continue, they are presented with X number of identical forms to complete in a tabular view.
Or, if there is a way of having the X number of identical fields appear on a single form, that would also be useful. I've done something similar to this manually before using a UI Policy to show fields when a number is selected, but it was very time consuming to copy the fields and prone to errors when changing the value.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2015 07:02 AM
for(var i=1; g_form.getValue('count')>=i; i++)
{
g_form.setDisplay('A'+i, true);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2015 06:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2015 07:30 AM
what i have done for this type request is to create the first one as a stand alone item... then copy the item and rename it and all variables with a 2.. then 3.. then 4.. etc...
then i create an order guide that has them fill out each item individually .. this has the advantage of each item added being in it's own requested item.. which allows each one to be rejected approved and worked independently.
an alternative method of doing this if you need them all in one item.. is to build all of the variables for one item in one variable set... .then copy that with options.. and rename the new vs and variables by again adding a 2, 3, etc. make sure you put the entire variable set in a container... and the last variable should be a check here to add anouther item...
if the variable set 1 check here to add is checked you show the container for vs 2... etc...
by copying either the item or variable set you can save a LOT of time on renaming things.. also i would keep the variable names almost identical with just a number at the end or beginning different.. this way if you need to modify a variable/client script you can search for all the ones with that name omitting the number and correct them all from there..