- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 05:22 AM
How to get the current form short description to populate the carts description variable?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 06:32 AM
@Joshua Comeau Try this
cart.setVariable(item, 'what_can_we_help_you_with', current.u_ppm_short_description);
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 05:49 AM
Yo can use current.<Field_Name> to get the value of it. For testing purpose I have created a string field called Short Description (u_ppm_short_description) and just wrote a simple log statement, I could see the field value in the logs.
In your case you can access like current.u_ppm_short_description
Please mark my answer helpful and accept as solution if it helped 👍✔️
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 05:55 AM - edited 11-09-2023 05:58 AM
how do I get the gs.info into the cart variable?
script I used:
I am getting the following error (undefined):
also tried this same issue:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 06:32 AM
@Joshua Comeau Try this
cart.setVariable(item, 'what_can_we_help_you_with', current.u_ppm_short_description);
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 06:36 AM
same through an error undefined on the task it created