Vishal Chaudhari
04/30/2025, 11:30 AMCeligo AI
04/30/2025, 11:30 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems like the issue is related to the way the client script is deployed and how it interacts with the address form. The 'defaultshipping' field is not a standard field that stores data, but rather it populates data when the page is loaded. In the first conversation, it was suggested that the client script might be deployed to the sales order, which is why 'custbody_use_customer_label' exists and 'defaultshipping' does not. The address is a subrecord and its fields are not available to a client script deployed to the parent transaction. In the second conversation, it was mentioned that the client script runs server-side where there isn't a console. Removing the console.log resolved the issue. In the third conversation, it was suggested that the issue might be due to the users having the old Address Form cached. Clearing their browser cache might solve the issue. However, the script still didn't work for other users even after clearing the cache. It was suggested to add a
pageInit
handler that logs a message to the console or displays right away to confirm whether the Client Script is loading at all.
To make the 'defaultshipping' checkbox field false, you might need to manipulate the DOM or use a different approach, as it seems that the field is not directly accessible through the client script.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
04/30/2025, 11:30 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.889389277
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.868276536
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.867672861
Celigo AI
04/30/2025, 11:30 AM