List collector field reference of country table by selecting china , usa automatically populated

sonypaap
Tera Contributor

Hi All,

 

I do have scenario when in catalog item there is variable called list collector with country table reference when usa selected puetero Ricco automatically populated.

but i am not able to delete pueteo Ricco  i am able to delete either one if  requires currently its not performing like that.

below scenarios i have followed  can  anyone let me know how to delete either one currently its not performing 

used created one  property where i have added sys_id 's of countries

script include 

sonypaap_0-1692100865238.png

sonypaap_1-1692100907547.png

 

sonypaap_2-1692101157562.png

 

Thanks

 

9 REPLIES 9

SANDEEP28
Mega Sage

@sonypaap what is not working ? 

What I understand from your code is

1) If you select USA in one field  then United State of America and Puerto Rico is getting populated in List collector fields.

2) If you select China in one field  then China, Hong Kong SAR and Macao SAR is getting populated in List collector fields.

 

What are you trying to delete here ? 

Hi @SANDEEP28 

You select US, then Puerto Rico is added but u can delete one of them from list collector  if needed

it is not working correctly right now. If i try to delete Puerto Rico, u can see that it is being added back I don't want that is there any code correction needed 

SANDEEP28
Mega Sage

@sonypaap If onChange client is written on the field where you select USA or china then even if you change anything on the list collector field that script include should not get called. 

Check if any client script written on List collector field.

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !! 

Hi @SANDEEP28  other than client script for usa or puerto rico no other client scripts were not written based on that field