Questions tagged [form]
The form tag has no usage guidance.
266
questions
4
votes
2answers
1k views
How do set multiple entry relations using checkboxes on a front end form?
I want to set up a form on the front-end of a site to allow logged in users to choose items from a list which represent entries in a channel using checkboxes, then save those entries as relations to ...
1
vote
1answer
221 views
Front-End Entry (Guest) saving correct values on error
I'm building a Guest Entry Form, and one of the fields is a dropdown. Everything feeds through fine, but if one of the other fields has a validation error, I can save any inputted data with the code ...
0
votes
1answer
334 views
Upload user profile image from custom plugin controller
Im trying to upload a profile image from a front end form via a controller function
this is what i have but the $image keeps returning null?
<form name="updateProfile" method="post" enctype="...
0
votes
1answer
836 views
Posting front-end form to plugin controller route results in 404
I'm working on a plugin and need a front-end (non CP) form that submits to one of the plugin controllers. Here's my setup:
- plugins
- portal
-- PortalPlugin.php
- controller
-- ...
0
votes
1answer
788 views
Form select entries by year
For example have the following code:
<form action="">
<select>
<option>2015</option>
<option>2014</option>
<...
1
vote
1answer
847 views
Registration email link not being sent
I'm using the following form, and occasionally through testing the e-mail activation link will send, however the majority of time it never gets sent. Did I do something wrong with the form?
<form ...
2
votes
1answer
159 views
Plugin-settings form field for chosing a user?
I'd like to be able to select a user for a settings field for my plugin.
Is there a settings AttributeType that matches users? And a corresponding forms template for picking a user?
(also ...
2
votes
1answer
1k views
Get _POST from Select element in Form
I'm trying to get the _POST data for my form in a plugin, and for whatever reason am unable to get the selected option from a select tag:
<form class="parseResults" action="actions/MyPlugin/...
3
votes
4answers
3k views
Robust Form Plugins for Craft?
We're doing a rebrand and web overhaul for a Christian camp, retreat, and conference center. A big part of the site is a registration system where people can register for an event, fill out a detailed ...
0
votes
1answer
289 views
Globals fields empty after form errors
I'm using global fields on a multi language site to get the appropriate content depending on the locales used. Sof far so good.
However on a form page (sproutforms) these globals empty out after the ...
1
vote
1answer
278 views
How do I get an empty table field type to display on the front-end so a user can update their profile?
I'm building out a front end form that users will use to fill out with their information. Naturally, when a user first signs up, their profile fields are empty and a blank space appears for them to ...
2
votes
1answer
524 views
Pixel & Tonic's Contact Form Plugin - POST submissions to Zapier Webhook URL?
I'm still a beginner with PHP so please bear with me. I've installed the Contact Form plugin for Craft by Pixel and Tonic, and have it configured to work as expected.
However, I'd like to have the ...
2
votes
3answers
638 views
Contact Form - ReplyTo or Output fromEmail
So I have a contact form set up in Craft using the Contact Form plugin. I have it rigged up with Mandrill as the SMTP provider and unfortunately with the notifications, the from email address is ...
1
vote
2answers
112 views
where can I find manual for craft forms
there is tool forms(/craft/app/templates/_includes/). But I cannot find usage manual, ex. options for forms.select etc. Where is it, guys? Thank you
1
vote
1answer
433 views
Edit a checkbox field within table field from the front end
This is an extension of a question I posted here earlier, but another layer of complexity.
I'm trying to have a checkbox field within a table field be checked/unchecked from a front end form.
I've ...
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 ...
2
votes
1answer
616 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
83 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
903 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 ...
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.
2
votes
1answer
246 views
How can I get a user to choose in which group he registers using the User Registration Form
Is there a way to allow a registrant to choose a user group in the registration form?
I tried using the following code but it didn't work:
<input type="hidden" name="userGroups" value="3">
2
votes
2answers
5k views
Post to an action URL fails, Get works
I have a simple plugin that's expected POST data from a form:
<form method="post" action="" accept-charset="UTF-8">
<input type="hidden" name="...
2
votes
3answers
3k views
Display list of countries in form using a dropdown
So I'm using this territories plugin to display a list of countries in a dropdown. The issue I'm having is showing these countries within my front-end entry form.
I've used this example but it doesn'...
1
vote
3answers
332 views
Entry form in home page
I have an entry form in home page which the home page already using the entry object.
And I am placing the entry form in home page when i call
{%- if entry is defined %} value="{{ entry.title }}"{%...
5
votes
1answer
494 views
Forms are triggering CSRF Protection. Why would CSRF Protection trigger false positives?
We've enabled CSRF Protection on a site.
When we do, it sometimes works, but most of the time it gets tripped and triggers false positives and doesn't allow our forms to be submitted.
Things we've ...
5
votes
2answers
751 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 ...
2
votes
2answers
686 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
754 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 ...
5
votes
3answers
1k 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
420 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 ...
5
votes
2answers
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 ...
2
votes
1answer
607 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
343 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?
4
votes
1answer
683 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
81 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
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 ...
1
vote
1answer
247 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
755 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
580 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
973 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
1k 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
2k 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 ...
3
votes
1answer
944 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
970 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
420 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
2k 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
392 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
455 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 ...
4
votes
2answers
1k 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 ...