rAuto populate list collector on a catalog item

MS12
Kilo Sage

I'm trying to auto populate a list collector for contacts on a catalog item. The contacts should be populated when the account and group field that's on the form are populated.

I have 2 issues:

1. The list collector is mapped to contact table and there is no reference qualifier on it. So as soon as the form is loaded, it is populated with values of results from contact table.

 

2. When account and group are populated, I'm calling a script include and returning all the contacts from that group to setting the value on list collector. But the list collector still keeps displaying the values that came up in step1. 

 

I have tried using  g_form.clearValue('add_users'), to clear value out the selections from list collector on load and it is not working. Any help is appreciated.

1 ACCEPTED SOLUTION

Oh sorry forgot to mention. This is technically DOM manipulation. There is a field that is not displayed on the client script. It is called Isolate script. You either have to add it to the form or you can add it to the list layout. For this client script you need to set it to false.

BrianLancaster_0-1673985387197.png

 

View solution in original post

6 REPLIES 6

Oh sorry forgot to mention. This is technically DOM manipulation. There is a field that is not displayed on the client script. It is called Isolate script. You either have to add it to the form or you can add it to the list layout. For this client script you need to set it to false.

BrianLancaster_0-1673985387197.png

 

Thanks a lot Brian! that worked.