Connect Date Picker
2 min
Use the date picker input element to allow site visitors to submit dates directly to your CMS (Content Management System) collection.
How do I choose a dataset?
Connecting to a dataset links the date picker to the CMS collection where the submissions are saved.
Click the Choose a dataset drop-down and select a dataset that connects to the relevant collection. If needed, select Add a dataset, then select the relevant collection and give the dataset a name.
Once you've connected the dataset, click the Value connects to drop-down and select the 'Date' or 'Date and Time' field type where the dates will be saved. Select Add new field if you need to add the field to your collection.
Learn more about creating a custom CMS form with input elements.
Do I need a 'Submit' button to allow visitors to submit dates?
Yes. Without a 'Submit' button, visitors can still choose a date, but they won't have a way to submit them to your collection.
To add a 'Submit' button:
- Add a regular button in your editor and change the text to 'Submit'.
- Connect the button to the same dataset that connects to your upload button.
- Set the Click action connects to field to Submit.
Learn more about creating a 'Submit' button for the input elements that make up your custom form.
Can I automate what happens when I receive form submissions?
Yes. With Wix Automations, you can choose from a variety of actions that you want to happen when you receive new submissions from your custom form. For example, you could receive an email, send data via webhooks, connect third-party web apps like Google Sheets, or automatically reply back.
To set up automations for CMS form submissions, first ensure the input elements of your form are set up correctly. Then, go to Automations in your site's dashboard and select the CMS form submitted trigger. Set up the actions you want to automate, such as sending emails or creating contacts. This allows you to manage form submissions efficiently.
Learn more about creating automations for CMS form submissions.
How can I allow members to update their own submissions?
To enable site members to update their own submissions, set your collection permissions to 'Advanced' and check the 'Update' option for the 'Item's creator' role. This allows members to edit only the items they created. Ensure your dataset mode is set to 'Read & Write' so that the connected elements can read and update content.
Did this help?
|
Didn’t find what you’re looking for? Try one of these articles.
Didn’t find what you’re looking for? Try one of these articles.
