I have a custom form which submits its contents to a data_collection. Its a straightforward form, some contact details, a couple of text drop downs and a date. The date picker is used in the form and linked to the correct field in the collection.
All the data from all the input fields save successfully to the collection, but the date field is always set to todays date, not the date selected in the date picker.
I’ve checked and rechecked the settings, I’ve tried setting the input field to both MM/DD/YYYY and DD/MM/YYYY formats. I simply can’t see why the record is being inserted with the wrong date.
Can anyone assist with areas to check please?
Found the solution, I was changing the value of the date picker in code (when another date picker higher on the page is changed).
Because I was just setting the input field value, that wasn’t filtering through to the connected dataset.
Now expressly commanded when the date picker value is changed, the field values are also updated.
$w(“#dataset3”).setFieldValue(“holiday_start_date”, $w(“#dateHolStart”).value);
Hi ellymayg,
I’m having the same issue and have checked your solution about another date picker on the page but that didn’t solve it. I’ve posted the issue here: https://www.wix.com/corvid/forum/community-discussion/datepicker-not-submitting-to-database
any ideas?
If I leave it set to todays date it submits but if i change the date it submits nothing, empty date field in database. Any ideas would love to hear.
Thanks