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
618
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
35
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
62
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
44
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
141
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
265
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
308
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
170
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
133
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
75
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
385
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
185
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
34
views
Saving tags via front end entry form - craft cms 4 and selectize.js
I have a front end entry form that allows users to update their entry. I have created a tag field using selectize.js that displays the existing tags for that entry, allows the user to enter their own ...
0
votes
0
answers
44
views
Craft CMS 4 - Front End User Entry Form Doesn't Submit Post Data
I am currently experiencing an issue with the Post data not submitting for a front end entry form that I am creating.
Here's my code:
{% macro errorList(errors) %}
{% if errors %}
{{ ul(errors, {...
0
votes
0
answers
138
views
Front end form entry with redactor and images
I'm attempting to create entries from a front end form with redactor for the main body content. We have an asset file upload field for the main image but we also need assets within the body text as ...
0
votes
0
answers
89
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
67
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
200
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?
...