Hi all,
thought this would be simple but having an issue with setting a date time field to blank in a canvas app. I’m working on a canvas app a previous developer has worked on
We have a toggle called DOB not provided and on check sets a variable called locDOB to Today() and another variable called locDefaultSet to true. On the uncheck of the toggle he sets locDefaultSet to false.
On the default date property of the date time field he has if(locDefaultSet=true,locDOB,, Parent.Default)
Now I need to clear the date and time field when toggle is false. So I tried replacing the Parent.Default with Blank(). However if a person doesn't set the toggle to true and enters a date and saves, when they come back to the screen the date time field is blank. The idea is if someone doesn’t provide a date and sets toggle to true today’s date is set automatically. However, if someone comes back in after the field value is saved and sets the toggle to false I need to clear it out.