Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Can you change the DataRangeCriterion to public DateTime StartDate { get; set; } instead? I am wondering if the Dojo widget requires/parses a datetime?
Hi,
I have created a custom Date Range criterion to allow for visitor group personalization based on time of year (think seasonal campaigns).
The criterion and visitor group are quite simple, just a Start Date and End Date to take effect:
When I compile this into the solution, I can see that the criteria is available and it does work as anticipated. The diji.form.DateTextBox formats the two inputs as calendar date pickers which is quite nice for the content administrator.
However, after creating one of these Criteria, saving it, and then coming back later to edit it- the StartDate and EndDate fields are "empty" on the front end. When I remove the DateTextBox dojo widget type, I see the raw string correctly on the text input. It appears that the DateTextBox dojo type cannot initialize properly with the saved data. Are there any options I can pass into the DateTextBox dojo widget to get this to behave properly?