Client Script needed to populate normal variable based on Variable set variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 05:25 AM
Variable A is normal catalog variable
Variable B is a variable set variable
Now I need to populate Variable A based on selection in variable B (type: select box).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 05:29 AM
@Dinakar_Reddy_K
You can write a onchange catalog client script in catalog form on Variable B and set the value of Variable A
you can use g_form.getValue('B') or g_form.getValue('variables.B') to access B variable Value
Kindly mark the answer Correct and Helpful if it helps to resolve your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 05:34 AM
@Dinakar_Reddy_K is catalog variable B a "Single line variable " or "Multi line variable set" ??
If its "Single line variable" set then its pretty simple which you can achieve it using by creating onChange client script in catalog item.
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2024 05:27 AM
its a multi line variable set.