cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Date

former_member540174
Participant
0 Kudos

I have some optional date fields on my selection view. If the user clicks the reset button I need to set these fields to blank (like they were before they entered anything.) How do I do this? The context date fields only accept date's.

Regards,

Diane

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

have you tried this

//Assuming your attribute name is Date

wdContext.currentContextElement().setDate(null);

Regards

Ayyapparaj

Answers (1)

Answers (1)

former_member540174
Participant
0 Kudos

This worked


    wdContext.nodeDateRange().invalidate();