Questions tagged [frontend-form]
The frontend-form tag should be used for any question related to forms build on the front-end.
20
questions with no upvoted or accepted answers
4
votes
0
answers
769
views
How to Upload Multiple Assets Using Frontend Form
I'm trying to create a more interactive experience to upload moultiple images on a frontend entry form.
Things I have done:
I have implemented the code here: https://docs.craftcms.com/v3/dev/...
2
votes
0
answers
36
views
How to protect elements that are being edited during project-config/sync?
Some situations:
An editor is editing an entry in the CP while an admin runs project-config/sync.
A user starts a front end form to create a new entry before project-config/sync is run, but submits ...
2
votes
0
answers
63
views
Retain value from select and checkbox on frontend form after failure
I have a registration form on my frontend and when people click register but the form fails (due to the username already existing for example) I would like to keep all info they entered in the form so ...
1
vote
0
answers
76
views
Displaying errors on frontend profile form
I have a user profile form on the frontend that doesn't display errors for a URL field.
The field handle is 'website'.
This is my code:
{% macro errorList(errors) %}
{% if errors %}
{{ ul(errors, {...
1
vote
0
answers
254
views
Redirect to frontend login form after receiving email verification mail from CMS?
I'm working on a site with public registration and a manual approval flow for new users. The following settings for user accounts are active: Verify email addresses, Allow public registration, Suspend ...
1
vote
0
answers
356
views
What's left to troubleshoot this quirky "Unable to verify your data submission" behavior?
I have a frontend login form that sends a request to Craft's own actions/users/login action. I've used this same process in another project and it works there, but not here, and I can't figure out ...
1
vote
0
answers
327
views
Entries as JSON files?
I work with VUE CLI and I want to build a entry form.
My first Idea to bind in the data was props. They work but i can't modify the data (because it's props :D).
To correctly integrate the data, my ...
1
vote
0
answers
197
views
Non-admins can't create new entries with front-end form (ajax)
I'm hitting an issue where signed-in non-admin users can't create a new entry with a front-end entry form (but can edit existing ones). Everything works except for this single instance:
✓ Admin ...
1
vote
0
answers
148
views
Craft 3: Possible to merge checkbox and text values from a frontend form and put into a plaintext Craft field?
Is it possible to submit checkbox array and text values on a front end form into a plaintext Craft field in Craft 3?
My solution worked in Craft 2 but it broke in Craft 3 due to some under the hood ...
1
vote
0
answers
77
views
Display Stripe card error in Craft 3 front-end entry form template
I have a custom plugin set up to speak to Stripe's API and process a card charge. The code triggers in a craft\elements\Entry::EVENT_AFTER_SAVE event because I want to pass along certain data about ...
1
vote
0
answers
440
views
How can I edit multiple entries via multiple front-end forms using Vue.js?
I found this post. However, writing a plugin in currently not an option, and I'd like to do this with Vue.js since I'm already using it for form validation & other stuff. Also, this involves ...
1
vote
0
answers
105
views
Rewrite locale urls on nginx, but not for registration links
I'm using this Gist to rewrite the urls on a localized website running on nginx. It's working fine, except for the account activation links. They are localized as well, but they shouldn't. I'm sure ...
1
vote
0
answers
199
views
Front end entry dropdown with null option
I have successfully implemented a front-end form that allows the user to add new "blocks" to a certain matrix field. This matrix field has one text field, two date fields, and one entry field that ...
1
vote
0
answers
71
views
Plugins for Tags
Is there any plugin for Tag that will be like:
Text field in a front-end entry form where user can add multiple tags.
After pressing the save button, the plugin should:
check for every tag, whether ...
0
votes
0
answers
22
views
5.x - Matrix Frontend Form Submissions
Has anyone found a way to create matrix field submissions with a frontend form?
The docs for 5.x mention this section hasn't been updated and that the functionality has changed drastically.
Craft 5.x -...
0
votes
0
answers
38
views
Frontend assets upload to folder (Craft 4)
I need to upload files into an asset folder I have created using a frontend form, however I can't seem to get this to work in Craft 4.
This is the code I have used:
<form method='post' accept-...
0
votes
0
answers
24
views
Saving new asset as first index in assets field?
I have a front-end Entry form that has a file input for adding a new Asset to the Entry. It works fine except that I have the special requirement of wanting to add the new asset as the first index in ...
0
votes
0
answers
96
views
Frontend Form for editing entries HTTP Exception
I took the example form of the craft CMS Entry Form Documentation page and tried to use it on a test site.
However i always get a HttpException after submitting the Frontend Form.
Here's the Stack ...
0
votes
0
answers
79
views
Add Matrix Blocks to existing Entry with Form without discarding existing Matrix Blocks
When I want to save an new Matrix block with an form to an existing Entry:
<form method="post" accept-charset="UTF-8">
{{ csrfInput() }}
<input type="hidden" name="action" value="entries/...
0
votes
0
answers
205
views
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'targetId' at row 1
I've just upgraded to the latest version of Craft on a site that uses the Guest Entries plugin. While it was fine before hand, I'm now running into the titled issue.
Has anyone run into this before?
...