Last active
December 19, 2024 12:22
-
-
Save AshikaSuresh/8a0b4e33762cb92d904a8784ff45630c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In the Campaign Module's subform, when a new row is added, the "Status" field should auto-populate with "Planning" and the "Allocated Budget" should default to $3000. Changing the Region should clear the campaign details to ensure only region-specific data is displayed. | |
| 1. Row Auto-population: onRowAdd Event with setValue() | |
| 2. Subform clearing: onChange Event on "Region" field with clear() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Subform - Campaign Details - onRowAdd | |
| ZDK.Page.getSubform('Campaign_Details').getRow(index).getCell('Status').setValue('Planning'); | |
| //updating base allocated budget on row addition | |
| ZDK.Page.getSubform('Campaign_Details').getRow(index).getCell('Allocated_Budget').setValue('3000'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment