Need to add catalog item to wishlist automatically

diNesh_M
Tera Contributor

Hi Team ,

I have a requirement that wants a catalog item in service portal to be automatically added into the "Wish List"  when the user selects a particular value in a drop down field .

For example if the user selects "No Idea" in a dropdown field and that should make the catalog item to move into the "Wish List" automatically.

Hope some script should be written in the body html template and client controller of the "Add to wishlist" widget.

But not sure what script should be written in there.

Any idea ?

Will paste the screenshot below:

 

diNesh_M_0-1692688386278.png

 

diNesh_M_1-1692688396843.png

 

Thanks

2 REPLIES 2

Jim Coyne
Kilo Patron

Not sure if it's just me, but those screenshots are not readable, way too small.

 

You might also want to take a look at these 2 posts for future questions:

TNT: Screenshots Help, but Code is Better

TNT: And Formatted Code is Even Better

@Jim Coyne 

Hi Jim,

Its my bad that i have posted it small unknowingly.

I will paste those screenshots again in a better readable way ,pls let me know if any changes needs to be done in that code to satisfy the requirement.

 

diNesh_M_0-1692689813801.png

 

diNesh_M_1-1692689852297.png

 

Thanks