Set the field value based on other 2 variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2024 04:09 AM
Hi,
I have 2 fields in a catalog item called From Stockroom and To stockroom which refers to stockroom table.
Based on the selection From and To location will be populated in the catalog item.
I need to set the field Shipping required to true in the catalog item based on the value chosen based on the below conditions.
1. If Location is different then I need to set the shipping required to Yes.
2. from Stockroom.Location.Location Type='Building' && To Stockroom.Location.Location Type=='Building then set shipping required to Yes.
3. from Stockroom.Location.Location.sysid!=ToStockroom.Location.Location.sysid
Else need to set the shipping required to No in the field
Have already written the script include which return the location and building as below:
Need help on writing the client script.