Skip to content

Instantly share code, notes, and snippets.

@AshikaSuresh
Last active May 17, 2024 05:36
Show Gist options
  • Select an option

  • Save AshikaSuresh/5ce068683525384db3beab773fdcea04 to your computer and use it in GitHub Desktop.

Select an option

Save AshikaSuresh/5ce068683525384db3beab773fdcea04 to your computer and use it in GitHub Desktop.
When the checkbox "Is shipping address same as billing address?" is checked, the Shipping Address section should not be visible.
Configuration
Page Details : Create Page (Canvas)- Orders
Event Details : Field Event - Is shipping address same as billing address? - onChange
let elem = ZDK.UI.getElementByID('shipping_address');
if (value==true)
{
elem.setVisibility(false);
}
else
{
elem.setVisibility(true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment