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
8 votes
5 answers
3k views

How do you set a user's group on a registration form?

In a registration form with public signup possible, how do you set the user group for a particular form? As a stop-gap I am attempting to use the following code: function init() { craft()->on(...
user avatar
  • 6,682
4 votes
0 answers
438 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/...
user avatar
  • 367
2 votes
2 answers
413 views

Frontend Form - Checkboxes cannot "all" be unchecked

I have a frontend entry form with some checkboxes that is not behaving correctly. If you uncheck all options and save, nothing changes (this is bad). However if you uncheck one item and check another ...
user avatar
  • 1,907
2 votes
1 answer
741 views

Date fields saving the wrong date from front-end form

I have a front-end form with two date fields. After upgrading to Craft 3 and implementing what I believe to be all the changes concerning front-end forms in Craft 3 I am experiencing some odd behavior....
user avatar
2 votes
2 answers
1k views

Form for admins to register users from the front end

Is there a way to create a front-end form that would allow a user with appropriate privileges (Register users) to register new users?
user avatar
2 votes
1 answer
216 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 ...
user avatar
  • 125
2 votes
2 answers
100 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 ...
user avatar
  • 3,664
2 votes
2 answers
508 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 }} ...
user avatar
2 votes
1 answer
507 views

AJAX Front-end User Registration Form not displaying macro errorList

I have a user registration form on my Front-end which is submitted with Ajax which works fine. The only problem is that if I have any errors, like an already in use username they wont be displayed. ...
user avatar
2 votes
1 answer
179 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 ...
user avatar
  • 1,769
2 votes
1 answer
206 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! :)
user avatar
  • 61
2 votes
1 answer
161 views

Sprout Forms - Can't save front end entry edits

This this might be a bug but want to ask here first in case I'm missing something minor. Description Trying to front edit a Sprout Form entry that was created in the front end. I'm using the same ...
user avatar
2 votes
1 answer
196 views

frontend account edits

I have an account page for all my users, however i'm running into a small issue with being able to update passwords / emails on the frontend. Any advice on how to do this? I read that updating either ...
user avatar
2 votes
1 answer
326 views

Check for errors (any) on guest entry form (Craft 3)

I have a guest entry form that's working fine. I'm using Craft-supplied code: {% macro errorList(errors) %} {% if errors %} {% for error in errors %} {{ error }}{% if not loop.last %}, {% ...
user avatar
  • 608
2 votes
1 answer
112 views

How can I use the Courier plugin to notify a user when an entry is enabled?

Moderation scenario: Registered user publishes an entry using a front-end form that sets the entry to disabled. Moderator receives email re new entry and changes status from disabled to enabled in ...
user avatar
2 votes
1 answer
520 views

Front End Editing with Entry From

I need to allow store managers to edit their store. I'm most of the way there and have the title field and a couple of other plain text fields set up. However there isn't any documentation available ...
user avatar
  • 1,907
2 votes
1 answer
615 views

How can I validate a Redactor rich text field in a front-end form using the VeeValidate Vue.js plugin?

Scenario I'm using the VeeValidate Vue.js plugin to validate a Craft front-end form that contains a Redactor rich text field. Problem Validation of the rich text field fails because Redactor adds ...
user avatar
2 votes
1 answer
115 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 ...
user avatar
  • 419
2 votes
1 answer
868 views

Write to Craft via Element API

I’d like to use Craft as a headless CMS for my mobile app (via the Element API plugin). However, in addition to reading data, I’d also like to write data back to Craft. It looks like this is ...
user avatar
  • 123
2 votes
1 answer
307 views

User Profile Form Not Saving Data

I'm having some trouble saving custom user fields via a front-end form as described here. All the other forms on the site that use the same method save the data correctly. I'm able to pull in the user ...
user avatar
  • 31
2 votes
1 answer
153 views

Non-admins not authorized to create entry via frontend

I'm currently working on a page that should allow registered users to upload an image and save it as an entry in a section called "bildupload", together with some additional fields. Creating/saving ...
user avatar
2 votes
0 answers
34 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 ...
user avatar
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 ...
user avatar
  • 1,456
1 vote
1 answer
273 views

Edit entry, on the front end, with the entries field

I currently have front-end code working for a user to create an entry, add a title (text input) and also relate entries via the entries field type and checkboxes. All on a front-end application. ...
user avatar
1 vote
2 answers
677 views

Help with tags input field on a front-end entry form

I need to make a "keywords" field on a front-end entry form that can create tags in the cms (Craft 2). I am fully aware of existing tickets regarding this issue like Brandon Kelly's but they're a ...
user avatar
  • 1,932
1 vote
2 answers
177 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 ...
user avatar
  • 283
1 vote
1 answer
435 views

Bad Request POST param “redirect” was invalid

I'm creating a user profile form on the front-end of our website. I've removed all template code and replaced it with the documentation code from the Craft website. I updated the docs code to reflect ...
user avatar
1 vote
2 answers
131 views

Save an entry with tags

I have a project that the user choose a tag (tags are already created) and save the information. I try save a entry which has a tag field, all the stuff saves, but the tags don't. I try search ...
user avatar
1 vote
1 answer
1k views

How can I insert images into a Redactor rich text field in a front-end form?

I want to allow registered users to insert (i.e. upload) images into a Redactor rich text field in a front-end form. I dowloaded the Image Manager plugin from Imperavi (https://imperavi.com/redactor/...
user avatar
1 vote
1 answer
47 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 ...
user avatar
1 vote
1 answer
49 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 ...
user avatar
  • 125
1 vote
1 answer
49 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-...
user avatar
  • 125
1 vote
1 answer
27 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 ...
user avatar
  • 135
1 vote
1 answer
50 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 ...
user avatar
  • 1,907
1 vote
2 answers
141 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 ...
user avatar
  • 367
1 vote
1 answer
56 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. ...
user avatar
1 vote
1 answer
72 views

How can I get the id of an unverified user on front-end?

I would like to build a send activation email form on front-end, for users who didn't get or accidentaly delete the activation email. I can call the users/send-activation-email action to achieve this,...
user avatar
1 vote
1 answer
339 views

How to rearrange the order of blocks of a single matrix field using a frontend form?

I'm trying to rearrange the matrix block order using a frontend form. If I use JavaScript to change the order of inputs in the DOM will this change the order in the backend after form submission? How ...
user avatar
1 vote
1 answer
578 views

Get a field's required attribute in frontend form

I am trying to get the required attribute of a field in a frontend form. I know this attribute only makes sense in the context of an entry type. Doing this craft.fields.getFieldByHandle('handle') ...
user avatar
  • 728
1 vote
1 answer
136 views

How to save multiple related entries on the frontend with 1 checkbox?

I have a frontend form and would like to save multiple related entries by checking 1 checkbox. I have this working to save 1 related entry: <input type="checkbox" id="user-type-select-{{ userType|...
user avatar
  • 1,456
1 vote
1 answer
109 views

Can Craft handle social-esque frontend user interactions?

I've got a potential client I'd like to build a Craft site for, but they have some specific features I'm not quite sure how to handle. Could someone tell me if Craft can handle the following features? ...
user avatar
  • 616
1 vote
1 answer
49 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 ...
user avatar
1 vote
1 answer
41 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 ...
user avatar
1 vote
1 answer
55 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 ...
user avatar
1 vote
1 answer
57 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. ...
user avatar
  • 1,517
1 vote
1 answer
64 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 ...
user avatar
  • 387
1 vote
1 answer
359 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 ...
user avatar
1 vote
1 answer
42 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 ...
user avatar
1 vote
1 answer
583 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 ...
user avatar
1 vote
1 answer
282 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 ...
user avatar
  • 53