Is there any way to clean Datepicker value programmatically in Whatsapp Flow?
1

Is there any way to clean Datepicker value programmatically in Whatsapp Flow?

Example as below: Service screen -> Slot screen

Scenario: 1.⁠ ⁠Select ‘service A’ in Service screen -> Go to Slot Screen 2.⁠ ⁠⁠Select date ‘2024-01-01’ in Slot screen 3.⁠ ⁠⁠Click Back button -> back to Service screen 4.⁠ ⁠⁠Select ‘service B’ in Service screen 5.⁠ ⁠⁠Date still display 2024-01-01 in Slot screen

Expected: clean up the date picker field and lets user select the date again (As 2024-01-01 may only available in service A but not in service B )

Output: Date picker field still hold the value from previous selection

Mark
Asked about 2 months ago
Selected Answer
1

The only way to do this is to set up an Endpoint for your Flow

This way when a user clicks on the CTA between the service and slot screen, you can dynamically set the init-values of the date picker component in the slot screen via your Endpoint response.

September 20 at 4:38 AM
Bar
Mark

But I would like to clear the value instead of assigning a new date. I try to assign null or empty string to init-value. However, it is not a valid format for the date picker.

September 24 at 11:35 PM