Questions tagged [form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
2answers
3k views

Does anyone have a working example of frontend form with multiple file upload, drag & drop etc?

I'm trying to create a frontend entry form for a logged in user, with a field to upload multiple assets to that entry. I've tried using the Jquery FileUpload plugin, but can't seem to get that working....
18
votes
3answers
4k views

Allow user to change or delete their photo for their profile from the front end

How can I allow a user to change or delete their photo for their profile from the front end? I currently have a form setup for the user to edit their profile but I want to load their current photo (...
10
votes
1answer
2k views

How do you delete assets from a frontend form?

I am creating a proof of concept for a client in Craft where the client's customers can manage projects from the frontend of a Craft install. I have a frontend form working correctly for creating a ...
5
votes
1answer
945 views

How to add a tags-field to an entry form?

I use the following entry form (front-end): https://craftcms.com/docs/templating/entry-form How can I add a tags-field to this entry form?
6
votes
3answers
2k views

How do I enable redactor rich text editor in a front-end form?

I have a front-end form for registered users to submit entries, however I'd like to have a WYSIWYG editor like the dashboard. How would I get redactor working with this form? My form: <form ...
18
votes
1answer
6k views

How do you create a front-end form for users to submit content?

I'd like to create a form for users to load events (that I will moderate and publish). How do I do this?
7
votes
1answer
2k views

Can guests upload files to assets in an entry form?

I'm using Craft Guest Entries plugin and the Entry Form technique elsewhere on my site. I'm currently trying to add a file upload to it. The entry is publishing but nothing is making it to assets. ...
4
votes
1answer
2k views

Is it possible to change a user's password in the front-end?

Is it currently possible to change a user's password in for example the profile edit form? I'm currently using the forgot password approach for this.
7
votes
1answer
2k views

How do you delete entries from a frontend form?

Part 2 of a 3 part question: I am creating a proof of concept for a client in Craft where the client's customers can manage projects from the frontend of a Craft install. I have a frontend form ...
9
votes
1answer
1k views

Can I accept file uploads using the Craft Guest Entries plugin?

Can I accept file uploads using the Craft Guest Entries plugin? Using input type="file" doesn't seem to be working.
4
votes
1answer
1k views

Edit a table field type from the front end

Similar to this question, I'm trying to make a table field type editable from a front end form. When I update from the CP, the changes are reflected on the front end, but the following code doesn't ...
3
votes
1answer
976 views

Category as select dropdown box

Im trying to setup a front end user form with a category as a select box. The box looks right but when i submit the form i get a new entry and other fields are filled out but the catgory fields are ...
0
votes
1answer
305 views

Serialization of 'Closure' is not allowed

I created a form on the frontend that allows users to upload their profile photos: <form method="post" accept-charset="UTF-8" enctype="multipart/form-data"> {{ csrfInput() }} <input ...
8
votes
4answers
4k views

Email Notification When Post Submitted

Is it possible for a user group to be notified by email when a post is submitted using either the backend or a form on the front end?
6
votes
2answers
1k views

Front end edit: entry doesn’t get saved

I am trying to make entries editable from the front end and pretty much follwed the docs. When i visit my edit view, the entry-from is filled with their respective values but unfortunately no changes ...
2
votes
1answer
447 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. ...
2
votes
1answer
623 views

Edit multi-select field from front end

I'm trying to set up a front end user profile that will allow the user to use the multi-select field. When I update from the CP, the changes are reflected on the front end, but this isn't working when ...
2
votes
1answer
1k views

How do you correctly handle errors using PT Contact Form when submitting via AJAX?

I'm trying out AJAX submission for the PT Contact Form for the first time. I've managed to get errors appearing on the frontend, but I don't feel like I'm doing it the right way. It also doens't ...
4
votes
1answer
1k views

How do I retain form input values after submitting error-ridden form containing matrix field inputs

I'm looking for a way to keep matrix inputs populated with their original value after submitting a form containing errors. I'm already aware of the method of doing this for general inputs as shown ...
2
votes
2answers
2k views

Get the ID of a new entry when it's saved

Is there a way to save a new entry with a template form, then pass the ID of that new entry along to the redirect location? The use case is, I'm interacting with a scheduling service and want to ...
2
votes
1answer
914 views

Tie two select fields together based on category and subcategory?

I'm trying to set up a front end form where the user can choose their city and state, which are stored as categories. I have states set up as the parent category and individual cities as sub ...
1
vote
1answer
106 views

How do I relate a user to a channel entry from a form?

I have a channel which has a relate to user field, how do I setup the front-end form which is a user details update form so they can select a channel entry from a drop down and when saved, have it ...
2
votes
1answer
84 views

Getting related project of a submitted 'wish' through the entry field.

I have a channel projects and a channel wishes (People can submit their 'wishes' for that particular project. In a project I made the 'entry field' projectHasWishes to connect wishes to project. ...
2
votes
1answer
1k views

How to populate Category field form frontend form?

I have a frontend form that has a select list for language. This field will allow for one language to be selected. In the backend I have a field set up for my entries as a category field populated by ...
1
vote
1answer
454 views

get post data after submitting User Profile Form for success message

After a logged-in user updates their profile on the front end, I'd like to redirect them to the same page but show a success message. I believe I can do this with craft.request.getPost() but it's not ...
1
vote
1answer
400 views

postCpLoginRedirect wrong redirect when used with autoLoginAfterAccountActivation

See below updates and accepted answer for a full solution I finally discovered postCpLoginRedirect which solves my needs, even though I only need users to access their profile (which includes lots of ...
1
vote
1answer
763 views

How do I add more account fields for user registration?

I'm using the default form found in the Craft CMS docs, however I'd like to create more fields other than username, password and email. How would I add more custom fields to capture user data like ...