Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

clearing fields - script

Avatar

Level 2

I need help with a script.  Basically:  form filler checks a box, a subset of fields appear for form filler to complete.  If form filler changes their mind and unchecks the box, the subset of fields disappear but information entered does not clear.  I need to clear all information entered when checkbox is unchecked.  Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 6

The simple answer is 'FeldName.rawValue = "";' simply include the line of code for each field that you want to clear the value with in the same code that makes them hidden.

Good Luck,

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

The simple answer is 'FeldName.rawValue = "";' simply include the line of code for each field that you want to clear the value with in the same code that makes them hidden.

Good Luck,