Hoping someone can help me figure out why the date picker range is still coming up disabled.
I have a form where I have a combo box that will show/hide a date picker range widget depending on the option selected. I have read the documentation and the default disabled so I have added an onchange event to the combo box with the condition to trigger the "DatePickerSetEditableInput" action to enable the date picker range. I have also tried hiding the date picker range with both an If block and just hiding the container. However, the date picker action is returning this error:
Date picker range input remains disabled:
1. I realized that the action is for the DatePicker and not the DateRangePicker. This is the reason that the action is returning that the DatePicker isn't found.
2. I solved the issue by changing the CSS on the screen with.
.is-editable__datepicker[readonly="readonly"] {
pointer-events: all !important;
background-color: var(--color-neutral-0) !important;
}
Hello Rebecca,
I have enclosed the date picker in Container and applied the Visible condition to it and its working,
Have a look at the screen shot below,
Before ID selection, Based on selected ID the Date picker will get visible,
After selecting the Company Id the date picker is visible
Let me know if you still have query,
Komal
Still not working, when calling the action to enable the date picker I'm getting this error message
Hey,
Is it possible for you to share the screenshot of action and condition on which you are trying to hide the date picker?
Best Regards,