Questions tagged [frontend-form]

The frontend-form tag should be used for any question related to forms build on the front-end.

Filter by
Sorted by
Tagged with
1 vote
2 answers
35 views

Which field types are supported with a submit entry on Craft 4

I'm working on a front-end entryform and wondering which field types are supported with the default controller ({{ actionInput('entries/save-entry') }}). Title and plain text fields are working but ...
Maarten Heideman's user avatar
0 votes
0 answers
27 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-...
Branko's user avatar
  • 497
0 votes
0 answers
20 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 ...
Brimby's user avatar
  • 343
1 vote
2 answers
122 views

Uploading (multiple) assets to assets controller via front end with Craft 4

I'm trying to upload assets directly to a volume using the 'assets/upload' controller in a front-end form. There must have been some changes since Craft 3 and I'm running into 2 issues: Issue 1: ...
MetaMachine's user avatar
1 vote
1 answer
181 views

Front end entry form not saving on Craft CMS 4 multisite

I have created a basic entry form that simply saves a title but I can't seem to get it working. I copied the code from Craft's documentation but that didn't work so I tried copying the code from ...
George Bleasdale's user avatar
1 vote
1 answer
200 views

'Request missing required body param' when submitting front end entry form - Craft CMS

I'm pretty new to craft and creating my first front end entry form using the demo code provided by craft. For some reason I'm getting a 'Request missing required body param' error. I've tried adding ...
George Bleasdale's user avatar
2 votes
1 answer
196 views

Working with "money" values

It's the first time I have been using a "money" field and don't really know how to use it. The docs don't tell much about it so I ask for help here. To get the value including a currency ...
obs's user avatar
  • 509
1 vote
1 answer
85 views

Set redirect after submitting password reset form for front-end user accounts

I've created a password reset template from here https://craftcms.com/knowledge-base/front-end-user-accounts#reset-password-forms. After submitting this form it redirects to the homepage. Is it ...
Alex Kuzmin's user avatar
0 votes
1 answer
45 views

How can I troubleshoot why a user's initial password is being deleted after a front-end registration? [answer: it was not set in the first place]

We have a front-end registration form that was working as expected for months, and now mysteriously when someone registers they can't log in because their password is empty. Using a front-end password ...
Kirk Roberts's user avatar
2 votes
1 answer
202 views

Adding New Matrix Block via Frontend in Craft 3

Referencing https://craftcms.com/docs/3.x/matrix-fields.html#saving-matrix-fields I believe I did this correctly according to the docs and other posts here. My Matrix field is able to save edits, but ...
cherrykoda's user avatar
  • 994
3 votes
2 answers
279 views

Delete Entry on Front End Form (Craft CMS 4.x)

Hello — been reading up on how to do this and there are some posts for Craft 2, 3 — but I'm not sure what's out there works for Craft CMS 4. I am using the following JS to delete an entry. However I ...
Adrian's user avatar
  • 437
1 vote
1 answer
98 views

Front-End user registration dynamic usernames - duplicate check

I have a front-end user registration form that generates a username automatically based on the first and last name inputs. This works as intended but on the off chance that two people have the same ...
Mike Niland's user avatar
1 vote
0 answers
69 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, {...
LessMore Creative Studio's user avatar
1 vote
1 answer
158 views

Is there a way to change the author of an entry on the frontend?

So, I know that you can do this on the backend. But is there a way to change the author of an entry from a frontend form? I'm making a vacation request system and I'm wanting managers to be able to ...
Keatyn Garton's user avatar
2 votes
1 answer
792 views

how to check if a user email exists before creating a new user on a frontend form?

I have a signup form on my site and I want to check if the entered input (email) is already used in my DB before submitting the form. What's happening now is when I create a new user with a new email ...
Ra3d K's user avatar
  • 125
1 vote
1 answer
106 views

Updating an entry slug while viewing the entry on the front-end

I'm currently working on an app and functionality as part of the app allows users to edit entries via a front-end form. As part of editing the entry, users can update the entry title (and the slug ...
Kieron Keenan's user avatar
1 vote
1 answer
76 views

Delete Parent and Children via the frontend

I'm having some trouble solving this issue and could do it with some help. Basically, I'm looking to replicate the "Delete (with descendants)" function from the admin panel in a front-end ...
Kieron Keenan's user avatar
1 vote
1 answer
275 views

How to save an entry using AJAX on a frontend Form [ for registered users]

I'm having a follow button on the front end it allows you to save an entry to a specific section (type: channel) and it's all working great, but i need to achieve this with AJAX This is my Form {% if ...
Ra3d K's user avatar
  • 125
1 vote
1 answer
93 views

Do i need a [ Craft PRO ] to create accounts/User management for my LMS website?

I'm still a new to Craft and trying to make an LMS website when i started to search about the [ Sign up/Sign in ] i read that the official docs : https://craftcms.com/knowledge-base/front-end-user-...
Ra3d K's user avatar
  • 125
1 vote
0 answers
224 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 ...
MoritzLost's user avatar
  • 11.2k
1 vote
1 answer
79 views

Specify FolderId When Uploading a File on the Frontend

In a front-end form where I am uploading a file, I need to specify a specific subfolder. I can't do it in the cp dynamic field for reasons so I was hoping to use a hidden field to set the folderId. ...
AbbeyDesign's user avatar
  • 1,527
2 votes
2 answers
174 views

Craft Commerce: Frontend Validation on Address Fields

Yes I know there is this post But how do you do address validation in the frontend of Commerce 3? The problem is the way Billing Address & Shipping Address are set up. Billing Address are the same ...
KSPR's user avatar
  • 3,786
1 vote
1 answer
56 views

Front End Entry Form - Proper Syntax for Custom Fields

I'm working on a front-end entry form with custom text input fields. From the Entry Form knowledgebase docs, I read "Any custom field handles must be provided in a fields[] array like body is ...
Ed Hebert's user avatar
  • 145
1 vote
1 answer
65 views

Best Approach to all unique groups of users to edit unique groups of entries in 1 channel

I've got a request to let front end users edit entries in 1 section, but only if the entries are related to their user group - so different users will have ability edit a different subset of entries ...
CreateSean's user avatar
  • 1,963
1 vote
1 answer
86 views

Set asset uploader from frontend entry form

Now that Craft keeps track of which user uploaded an asset, I'm wondering if it's possible to set this information when an asset is uploaded via a frontend entry form. I have a form that includes an ...
Garrett's user avatar
  • 417
1 vote
1 answer
627 views

adding a block of matrix field from a front end entry form

I am trying to add a form to the frontend in which a registered user will be able to create and publish new block in a matrix field. I have read the documentation about it but am still failing ...
LessMore Creative Studio's user avatar
1 vote
2 answers
312 views

How to upload asset element on its own, not into an asset field (frontend form)

I have read this resource about uploading a file to an asset field on an entry, but I believe I need to create the asset on its own because the asset has 2 custom fields associated with it that I want ...
Brimby's user avatar
  • 343
2 votes
1 answer
256 views

Front End Entry Form - File/asset field not saving when ajax submitted

I have a front end entry form which submits and saves fine when not using ajax. But when i do submit via ajax the text fields etc save fine but the file/assets field will not. I have stripped it right ...
mmc501's user avatar
  • 1,779
1 vote
2 answers
233 views

Frontend Form Search Users based on Tags

Context: I'm trying to build a search form that will filter users based on Name, Skills and School. Users who have any of the search criteria should appear in my results. Name Is a fuzzy keyword ...
Adrian's user avatar
  • 437
4 votes
0 answers
719 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/...
Adrian's user avatar
  • 437
1 vote
1 answer
93 views

Front end form with Matrix won't add more than one row

I have Notification entry with sendTo field and nViewed matrix: - viewedBy = Users field, limit of 1 - viewedDateTime = Plain Text User's don't see whole front end form, just a 'Mark as Read' link. ...
Amanda Lutz's user avatar
1 vote
1 answer
51 views

Updating a matrix row in an existing entry using a frontend form

I am trying to update a specific row in a matrix field using a frontend form, I created them using another form with each row following the [new1], [new2] etc. naming format, but I can't seem to get ...
Håvard LJ's user avatar
1 vote
0 answers
330 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 ...
Steven Thate's user avatar
0 votes
0 answers
94 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 ...
creme's user avatar
  • 101
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 ...
Katie Fritz's user avatar
2 votes
1 answer
187 views

Scan of front end user uploads

I wonder if we have a form allowing file uploads for front end users, does Craft or its plugins have certain feature to scan for virus / malicious content, before saving it? If not, what would be the ...
Wei's user avatar
  • 459
1 vote
0 answers
321 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 ...
Markus's user avatar
  • 11
1 vote
1 answer
962 views

How do I show errors for a new front end entry form?

I'm using a front end form so logged-in users can create a new entry ("post") or edit an existing entry. Here's the controller for figuring out whether it's a new or existing entry: {# Get the entry ...
Katie Fritz's user avatar
0 votes
0 answers
76 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/...
Rainer's user avatar
  • 11
1 vote
1 answer
325 views

Front End Dropdown Field from Super Table

I have a single static Super Table Field with some Dropdown Fields. Is it possible to loop through the values instead of hardcoding each one? My hardcoded version works without problems but i think a ...
Markus's user avatar
  • 53
1 vote
0 answers
187 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 ...
Travis Gertz's user avatar
2 votes
1 answer
268 views

How to remove a Super Table row on the front end?

Is it possible to remove a Super Table row? I got it to work to add a new row but it would be great if I can remove it later. Thanks for any help! :)
Samuel's user avatar
  • 61
1 vote
0 answers
146 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 ...
Lori's user avatar
  • 866
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 ...
Ryan's user avatar
  • 1,952
1 vote
1 answer
80 views

How to determine if a user's email has changed

I'm trying to determine if a user has changed their email address via a front-end form. From what I've gleaned, the best way to do this would be by checking the existing record during users....
Derek Hogue's user avatar
2 votes
2 answers
664 views

Frontend form to change Craft Commerce user's password?

I'm trying to modify Craft 3's example 'Change password' form to work with a logged in Commerce 2 user, and have copied that code to templates/setpassword.twig. Two problems... (1) The {{ code }} ...
James Greig's user avatar
1 vote
1 answer
266 views

How can I fix Image Exception error when uploading image via front-end form while Preparse plugin enabled?

I'm not sure if the issue is with Craft 3, the Preparse plugin, or me, so I'm posting here first. I have a front-end form that includes an Assets field used to upload images. The entry type contains ...
Andrea DeMers's user avatar
1 vote
1 answer
327 views

hashing form fields to prevent tampering

I have a front end form for entry creation. I have a few options I don't want tampered with. The docs for |hash say "Prefixes the given string with a keyed-hash message authentication code (HMAC), for ...
Simon Kuran's user avatar
  • 3,015
1 vote
0 answers
418 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 ...
Andrea DeMers's user avatar
0 votes
2 answers
290 views

Does Craft save dates in the locale format?

I have a website with multiple locales (English, Dutch, French, German and Spanish). I'm saving dates on a front-end form through Ajax, but it seems that Craft saves the dates in the locales' format, ...
Tom De Smet's user avatar
  • 1,456