Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

API call through Onload of a catalog form

Rahul84
Tera Contributor

Hi Developers/ @Ankur Bawiskar 

This is related to one of the tricky requirement which I need to build.

I need to call an API on the load of a catalog form and the response I need to store in one of the catalog form field which is a drop down options field.

Please let me know how I can achieve this type of requirement.

Step by Step explanation would be helpful and also a type of sample code.

Thanks in Advance !!

1 ACCEPTED SOLUTION

@Rahul84 Have you tried this? if yes then please close the thread by marking all correct answers

View solution in original post

46 REPLIES 46

oh okay got it yea.

But solution is not working. Nothing is coming in the drop down field. Can you check below snips and let me know where is the mistake.

Rahul84_0-1670582173712.pngRahul84_1-1670582243270.png

 

 

@Rahul84 Send screen shot of client script

Rahul84_0-1670582567244.png

 

@Rahul84 Both scripts look good. Can you try to print the answer before if and check what you are receiving

sure