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

Copying A Variable Value Into A Field Form

rsanon
Tera Contributor

We have numerous Catalog Items, where the request type is captured in the variable.

 

For example, "Email" is the Catalog Item, and "New Access", "Group Mailbox", "Distribution List" is captured within a variable.

 

With a business rule, I can copy the value of the variable onto the field on the Requested Item table.

 

current.u_item_type = current.variable_pool.email_access_list.getDisplayValue();

 

The issue I am experiencing however, is how do I expand that business rule?

 

If i have 50 Catalog Items, and I always want the "request type" value to populate into the Requested Item form. How should I go about doing that.

18 REPLIES 18

Just to be clear, however, this only works for Record Producers and not for "normal" Catalog Items.


Emily, it only works for record producers. And it is not advisable to create requested item records from record producers.


Jim Coyne
Kilo Patron

bianca.vaccarini, can you change this discussion to a question?   Thanks!


Sabrina10
Kilo Guru

Hi Rachelle



I had to do something similar, after many of the items were created with different variable names.   I created a variable called short_description in a variable set that I added to each item. Then I had an OnSubmit Catalog Client script on each item that built values I wanted into the Short Description variable.   Sometimes it was a combination of the Item's specific variables, not just one variable.



Next I had a business rule, like you did, that pushed the short_description variable to the short description of the RITM record on insert.



Hope this helps.


Sabrina


MarcusStewartBJ
Kilo Explorer

Has anyone come up with a possible solution. I am trying to do something similar. However my variables are the same. I just need to pull some variable values from the catalog form into some form fields on the request item form.