How to prepopulate Smart Date ranges?

Created on 23 May 2023, about 1 year ago
Updated 27 November 2023, 7 months ago

Problem/Motivation

I can't figure out how to prepopulate a date range field that's also using Smart Date ( https://www.drupal.org/project/smart_date β†’ ).

Here is the field's HTML:

<input class="time-start form-date required form-element form-element--type-date form-element--api-date" data-drupal-selector="edit-field-when-0-value-date" title="Date (e.g. 2023-05-23)" type="date" data-drupal-date-format="Y-m-d" placeholder="YYYY-MM-DD" data-help="Enter the date using the format YYYY-MM-DD (e.g., 2023-05-23)." id="edit-field-when-0-value-date" name="field_when[0][value][date]" value="" size="12" required="required" aria-required="true" data-once="smartDateStartChange">

I've tried:
?edit[field_when][0][value][date]=2023-05-25
?edit[field_when][0][value]=2023-01-05T23:00:00
Plus many other variations.

Any suggestions?

πŸ’¬ Support request
Status

Needs review

Version

2.4

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States RichardDavies Portland, Oregon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024