The CreatorCon Call for Content is officially open! Get started here.

Multiple Catalog Items

Wayne Richmond
Tera Guru

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

7 REPLIES 7

bashashaik
Giga Contributor

hi Wayne,



You are going use the same values for all catalogues .. i mean which your going to create .


example if you want to create 5 catalog items , when you enter field1 = 'xyz' , and submits the catalog these should map to all 5 catalogs which you are going to create.



Thanks


Harish Murikina
Tera Guru

Hi Wayne,



                      Are you looking for below format.


Here i select 4 servers show it displayed 4 rows to enter details.


4servers.JPG






Here i select 6 servers show it displayed 6 rows to enter details.



6 serv.JPG


Hi Harish,



Yes that would be one way of doing it. I've done something similar in the past but had to create all the fields manually. Is your example different? Thanks


I created all field manually like below.



A1


A2


A3


A4



When user selects 4


i displayed 4 rows in the below way



for(var i=1; g_form.getValue('count')>=i; i++)


{


g_form.setDisplay('A'+1, true);


}