Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [form]

The tag has no usage guidance.

3
votes
2answers
573 views

How do I extend another plugin?

I'd like to know if it's possible to extend another plugin with my own. I'm currently using the Sprout Forms plugin to create a contact form on our website, and I would like to extend that so when a ...
1
vote
2answers
558 views

Best way to re-populate input field with Model data on front-end?

I have a Plugin which saves data from a form the user enters on my front-end. When the input data is wrong and I display my validation errors using getErrors from the Model I want to re-populate all ...
0
votes
1answer
1k views

How do I enable editing of entries with a front-end form?

Users can currently submit entries using a form on the front-end. How would I go about showing the current logged in user's existing entries and allow them to edit them through another front-end form?
1
vote
1answer
659 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 ...
3
votes
3answers
962 views

How do I save a front-end form as a specific Entry Type?

I have a few different forms on my site for different kinds of enquiries, each represented by an Entry Type with different fields in a single Enquiries channel. How can I get the entries/saveEntry ...
1
vote
1answer
335 views

Front end edit required asset

Since file inputs are not allowd to be pre-populated, how do i tell craft that a required asset field is already filled in the front end edit form? Can’t seem to figure this one out. Edit: Users can ...
4
votes
1answer
1k 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 ...
2
votes
1answer
572 views

Craft front-end forms not working with Angularjs app

I'm making a site with Craft CMS/Angularjs. I'm using angular to filter and display entries on the index page and it's working good so far except for one thing. The login/register/entry form's all don'...
2
votes
1answer
285 views

How do I hide a login form if user is logged in?

What conditional statement would hide a form if a user is logged in?
3
votes
1answer
551 views

User Registration Form error message customisation

Where can I edit the error messages for the user registration form e.g for {% if account is defined %} {{ _self.errorList(account.getErrors('email')) }} {% endif %} I want to change this ...
0
votes
1answer
70 views

Download resource form page

I am creating a resources page, on which a resource can be downloaded after filling or submitting a form. This form is having user info fields like first name, last name, email etc. Could anyone ...
5
votes
2answers
822 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 ...
1
vote
1answer
211 views

Is it possible to return a User Model Entry or userid from a successful registration form submission?

Is there a way to return a user model entry, userid, or some other identifier (and/or variables in general) from a successful registration form submission using the hidden redirect parameter? In the ...
1
vote
1answer
571 views

Populate Lightswitch field from Frontend Entry Form

I have the following buttons on my frontend entry from (user editing one of their entries). The idea is to turn the lightswitch "on" (green) when entry is being marked as draft and "off" when ...
5
votes
2answers
493 views

P/T ContactForm Retrieving Custom fields Value after submitting form

I'm trying to retrieve custom fields value after submitting a form. Trying to access the custom fields through the message element after the form is submitted always throws an error that the custom ...
2
votes
2answers
878 views

Creating forms that save to the database & can be viewed in the admin

is it possible to create forms that save to the DB & a new screen in admin to see the submissions? Is there a user created forms module (like gravity forms) for Craft?
1
vote
1answer
758 views

Login form error messages

I am looking for some advice on how best to add error messages (eg incorrect password / username) on a custom Login form. Tried the usual routes for documentation but have seen nothing as yet - all ...
3
votes
3answers
1k views

User registration: How do implement “Confirm password” and “Confirm email”?

I've got a user registration form on my site, using the code from Craft's documentation. How can I get the form working so it asks the user to enter their email address and password twice? Can Craft ...
1
vote
1answer
737 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 ...
3
votes
2answers
708 views

How can I stop a duplicate entry being created & provide feedback?

I have a booking form on my site, which when submitted creates a new entry which has two fields: an Entries field which links to a single User, and another Entries field which links to a single Event. ...
2
votes
1answer
380 views

Upload an asset in a custom form

I am trying to upload/add an asset to an entry via a form on the website. The entry saves fine when I don't include the asset field but as soon as I add the asset field and try to upload a file I get ...
5
votes
1answer
1k views

Can you set the redirect path for system forgot password form?

At the moment when a user clicks on the forgot password link in an email the following happens: User is redirected to the forgot password page. User enters their new password. User is redirected to ...
1
vote
1answer
330 views

`entry` variable pre-populated on a frontend form

I set up a single page "Add Post" in the CP. In following the example here https://craftcms.com/docs/templating/entry-form my form title input field is pre-populated with "Add Post" This is obviously ...
2
votes
1answer
413 views

Registration Form twig add to an usergroup

I just started using Craft and I'm a little stuck with a public registration form. I made a user group and wanted to add these to the saveUser form. I found this answer but don't know where to find ...
3
votes
2answers
679 views

_includes/forms documentation on field types

I'm trying to find any documentation on the usable forms from {% import "_includes/forms" as forms %} so for example I have no idea what the difference is between elementSelect and select or how I ...
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 ...
6
votes
1answer
1k 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
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 ...
2
votes
2answers
148 views

Persistent Form Data

I am looking for some help with persistent form data. If a user submits a front-end entry form for some Entries data, but there are errors with the submission, they are currently redirected to the ...
2
votes
1answer
741 views

How to save Entries to an entry? (non-plugin)

I've got a 'booking' channel and an 'event' channel setup. Through the frontend, I need the logged in user to be able to submit a saveEntry form on the frontend which saves a new entry in the booking ...
7
votes
1answer
1k 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
822 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?
18
votes
3answers
2k 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 (...
3
votes
2answers
596 views

Submitting checkbox data from a front-end form for a 'Categories' Field Type

I have read a few docs about front-end forms such as the Checkbox field docs. Although that doc doesn't seem to give an example of what I need. I have a 'categories' field type. I am creating a ...
1
vote
2answers
133 views

Login form missing styling

Does anyone have any clue why my login page is missing styling. Seems like encoding trouble, but this has been perfectly fine before. I also checked the CSS, which has alot of scrambled content... ...
2
votes
1answer
438 views

How do I setup a password administration workflow using setPasswordPath and a forgot password page?

I have a couple of issues regarding administering users passwords from the front-end of my site. Firstly, I'm trying to implement the Set Password form as listed at https://craftcms.com/docs/...
3
votes
1answer
100 views

Where do I begin troubleshooting a Form in Craft that is redirecting to /login on iPad and iPhone?

I'm not sure how to ask this question. I have a form. It works just fine on desktops. However when the form is submitted on iPhone or iPad it never makes it to my controller and resolves to the URL /...
8
votes
4answers
3k 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?
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.
5
votes
1answer
996 views

Getting server-side feedback when submitting forms with jQuery Form plugin

I've got a few simple front-end forms that users can use to update their profiles. I'm using the combo of the jQuery Validate and Form plugins to handle validation and submission. I can successfully ...
17
votes
1answer
5k 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?