Questions tagged [form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
144 views

Tags via AJAX actionTrigger

I pretty much followed this and the answer there really helped me a lot so far. Currently I'm stuck with either a 500 (Internal Server Error) or a 400 (Bad Request) Error. My craft/storage/runtime/...
1
vote
2answers
58 views

Frontend form database error with empty Users field

Within a frontend Add Product form (using Craft Commerce) I'm having problems with a database error whenever a Users field is left empty. Here's the field: {% set teachers = craft.users.group('...
0
votes
1answer
307 views

A&M forms on submit internal server error

I've got A&M forms set up and I'm trying to get a assets field to upload files. My current form code is below. If I remove the first line then the form works correctly but I can't get a file ...
1
vote
1answer
262 views

Trouble passing errors back to form through setRouteVariables

This has me a bit stumped. I have two forms - posting to two different actions within the same controller. On error I am attempting to have them both display a flash-notice, as well as pass the model ...
0
votes
2answers
104 views

Form Plugin for Craft CMS

I'm looking for a plugin like ContactForm from P&T but with more options like validation for custom fields or the possibility to build a own mail template for the mail at his self. I want to ...
2
votes
2answers
706 views

Update form entry using the Guest Entries plugin

I am trying to create a form that anyone can submit regardless if they are logged in or not. I found the Pixel & Tonic Guest Entries plugin for this. Now that I've installed and configured the ...
1
vote
1answer
326 views

Dynamic email recipients with amforms

I have a situation where I need a form to submit and be sent to my company's email address AND to an email address outputted from an email field from the entry that the form sits on. Is it possible to ...
1
vote
2answers
702 views

Editing entry in front-end

I am trying to edit an entry automatically when you press a button. Is there a way to do this? A bit more detail: I have listed up a few entries, each with their own button. When I press the button ...
0
votes
1answer
311 views

Does Craft support gated content and form fills?

I'm a content marketer looking to get contact information for customers visiting my site. Does Craft support workflows with form fills? For example: User sees an ad for an ebook, white paper, or ...
2
votes
1answer
255 views

Pass value in form using the amforms plugin

I've created a (apply for a job) form using amforms. I'm using this form for multiple jobs. Whenever someone replies with this form, I want to pass the job name in the form. I've tries many thing but ...
1
vote
1answer
703 views

Append a placeholder value to a text input field when form is submitted

I have a Matrix field in my Craft control panel which contains content which creates a front end form. If the form field has a placeholder text entered in my Matrix field, I would like that text to ...
3
votes
1answer
92 views

How do I prevent empty table rows from being created when a front end form is submitted?

I have a front end form which contains text fields that are connected to a Craft table field. The issue I have is that if I do not fill out the text input fields on the front end it is still creating ...
1
vote
1answer
91 views

Save the form if not complete and come back another time to complete the form

I am using the FormBuilder plugin and I want users to be able to fill in a form. If they abandon the form without completing it or submitting it, I want the form to be saved and when they login and ...
1
vote
1answer
78 views

Multiple editableTable in a CP page

Is it already built-in in CraftCMS to make multiple editableTable in a CP page? The behaviour would be similar to Matrix field where you add a matrix block, the matrix block appears. What I want is ...
2
votes
1answer
645 views

Edit user's first and last name

I have added a form to my front-end to edit the user's first and last name. Editing all the other fields is not a problem but when I try to edit the first or last name it doesn't work. I think I ...
1
vote
1answer
208 views

form submission with checkbox list

I have multiple checkboxs in a form <input type="checkbox" name="Classification[]" value="Hub Zone">Hub Zone <input type="checkbox" name="Classification[]" value="Not Applicable">Not ...
2
votes
1answer
275 views

How to use form.handle in Custom field.html

I've created a custom field.html which is working fine when I manually specify the formHandle for use with submittedEntry as mentioned in the docs: {% set ourForm = craft.sproutForms.form('formHandle'...
1
vote
1answer
630 views

Entry Form: redirect not working

I use a front-end entry form based on the official documentation (https://craftcms.com/docs/templating/entry-form), but after saving the entry, I am running in an error 404 on the entry page. <...
2
votes
1answer
451 views

Change entry status on front end

I'm going wrong here somewhere, but I have a (edit) entry form and I'd like a 'disable' field to change status. The edit form works fine but status changes are ignored. Here's my field: <input ...
6
votes
1answer
648 views

Unsure whether to use Sprout Forms or code forms regularly

I was wondering if anyone who has experience using Sprout Forms might be able to steer me in the right direction on whether I'm better off using the Sprout Forms plugin or coding the forms ...
1
vote
1answer
531 views

Users fields on front end form

Is it possible to include a Users Fields Type on a front end form? I'd like to allow people to choose existing users on a front end form rather than giving them access to the admin area of the Craft ...
1
vote
1answer
405 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
37 views

Daily quota for post submissions

How would you go about creating a daily quota for posts? I have a simple photo gallery where users can submit images, problem is some people are a bit too excited. I'd like to limit submission to let'...
3
votes
1answer
107 views

Registration Form

I want to create a registration form in my website like Name, email and comments. Once the end user filled the details, I would like to allow him to download a PDF. Could any one please let me know ...
2
votes
2answers
117 views

Gated contact form

I want to create a user form that will be filled by an enduser. I'd like to store the forms data in the database.
0
votes
0answers
153 views

Entry Form not working

I have a simple entry form on the frontend that will not save form data. After submit it returns to the form page with no errors, rather than going to the url I set in the redirect variable. I have ...
2
votes
1answer
145 views

Wordpress-like Subscription

Wordpress has a great feature which allows visitors to sign up to receive email notifications whenever there's an update to the site. I'd like to emulate this functionality. I'm aware of Postmaster, ...
2
votes
1answer
319 views

Front-end form, creating a tag

Similar to the question asked here: How to add a tags-field to an entry form? I am trying to create an entry form that can create tags. I'm using http://selectize.github.io/selectize.js/ for the ...
1
vote
1answer
109 views

Creating on-demand Sprout Fields

I have a situation where a form needs to have the ability add additional fields on the fly. For example, if the user clicks "add cat" a new section/tab appears with the fields to add a new cat. So if ...
0
votes
1answer
89 views

How to edit registration form fields?

I want to edit the registration form on my site. I have set up new fields and added it to the field layout under setting. However, the changes still don't appear on the registration form. Another ...
1
vote
1answer
86 views

How to make combination of two field values unique?

I make use of the front-end entry form for an event registration process. The event is the main entry, and every event registration an entry of a related registration section. The challenge is to see ...
1
vote
2answers
285 views

Empty relation field validation failed with Guest Entries plugin

I am trying to save a entry with the Guest Entries plugin. The entry has a custom field 'office' thats set to 'entry' a relation to section 'offices'. <fieldset class="form-fieldset row-spacing-2"...
1
vote
1answer
93 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 ...
1
vote
1answer
83 views

How can I build a combined search without making all fields required?

I'm trying to build a form where users can search for events based on a date range, location and price range. I've got the form working, but having a bit of trouble when some fields/ selects are left ...
3
votes
2answers
777 views

Encrypt ID on front-end and decrypt on back-end

I have a front-end form that posts through the ID of a particular element/entry to a back-end controller. Is there any way to encrypt/hash that ID on the front-end, so the plain ID number is not ...
0
votes
1answer
528 views

The smoothest way to store JSON object to an entry?

I'm creating a page where I have a bunch of entries I want to populate with jquery drag and drop boxes. It's for the arrangement of songs, just as a tool. And I want to store the position of these ...
0
votes
1answer
287 views

<form><matrixBlock><checkbox></matrixBlock></form> How do I store multiple form entries in 1 table field?

A tricky one. I have a form which sits on a section entry template. When user submits form from one page of the template, it saves the entries into the table. BUT user going to another page of the ...
1
vote
1answer
126 views

Set Parameters from User Input

Is there a way to set parameters from front-end user input? Let's say I have a page that displays a list of entries. On that page, I have a form select called paidStatus with options notReceived, ...
6
votes
1answer
265 views

Form input not being disabled

In the plugin I'm creating I've got a form that has inputs which are set as disabled if they are overridden in a conifg file. The problem that is occurring is that disabled class is added to the ...
0
votes
2answers
71 views

Possible to set 2 data fields within 1 select option?

I have the following code in my form, but I'd like to also save the eventDate of the selected entry into a separate date field to enable sorting/selection later. <label for="eventName">Event &...
1
vote
3answers
1k views

Create date/time from string via form

I'm using the wonderful A&M form plugin to create a form on my site, and I have 3 dropdowns for the user's birthday: month, day, and year. Currently, I have it set up so that when the form ...
3
votes
1answer
68 views

Is it possible to POST to an action if the system is offline?

There are easier ways to do this for sure, but... I have the Mailchimp Subscribe plugin installed to build our email list etc... and it works perfectly! However, we are now building a "Coming Soon" ...
0
votes
1answer
553 views

Foreign key constraint sql error from entries/saveEntry when adding entry

I am getting a foreign key constraint sql error when trying to add an entry through a front end form. <form method="post" accept-charset="UTF-8"> {{ getCsrfInput() }} <input type="hidden"...
4
votes
2answers
995 views

Populating tables and matrix fields using GuestEntries

Is it possible to populate a Matrix Field, Table and Lightbox using the GuestEntries plugin from an HTML form? I'm trying to build an RSVP form, and am not having a lot of luck with different field ...
0
votes
1answer
492 views

Allow a dropdown custom field to be edit from a front end form

I want users to be able select their own name prefix/title (Mr, Mrs, Dr. etc) as part of front end form that allows them to update their user details. I have created a custom dropdown field and ...
1
vote
1answer
250 views

Categories on a Front-end form

I have searched the forum and cannot find the answer to my question. I know how to populate a dropdown with the categories that are already in the system, but what happens if the category that needs ...
2
votes
1answer
357 views

Assign entry id to title with entry form

I have an entry form to take user generated content. The section it passes the info to has a customised title format Submission ID: {id} However, when the entry gets submitted, the title in the CP (...
1
vote
1answer
288 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
316 views

Front End entry form, mapping a hidden field to a plugin?

I'm not entirely sure if this is possible, or the right way to go about this, however here goes. I have a front end entry form that members use to create entries. These entries contain location data....
0
votes
2answers
261 views

Sprout Forms Notifications to Office 365 address failing

I've got a few Sprout forms on a site that are functioning nicely. Data is being save and notifications are firing to 2 of the 3 addresses. The third address is an Office 365 mailbox on the same ...