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.

2
votes
2answers
101 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
122 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
136 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, ...
3
votes
1answer
250 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
105 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
58 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
77 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
233 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
79 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
75 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
628 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
331 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
253 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
109 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
217 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
65 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 &...
3
votes
3answers
828 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
61 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
464 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"...
3
votes
2answers
682 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
419 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
195 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
277 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
258 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
266 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
232 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 ...
1
vote
1answer
350 views

Custom Labels for Address Fields Craft Commerce

I need to be able to assign and output my own custom labels for the fields that are in the shipping/billing addresses during checkout in Craft Commerce. I've already done so on the form like so: {% ...
0
votes
1answer
309 views

Sprout Form Not Saving Entries

We have a Sprout Forms form being used for gated content access. The form appears to work correctly but none of the entries are appearing in the database/CMS. Here is an example URL with the form: ...
0
votes
2answers
444 views

FormBuilder 2 - Notification email to the form submitter

I have been using the FormBuilder2 plugin and it's fantastic. I am trying to understand if there is anyway that I can send an automatic email to the form submitter using this plugin. There is a ...
0
votes
1answer
971 views

Using Form to update User Profile and submit form

Checking the best way to achieve this or if it can be done without a plugin. I need to allow people to register and create user accounts on my site with various profile information. Then I will have ...
1
vote
2answers
436 views

Call to Craft Users Login Function from Plugin

I am migrating a 15,000+ users from a site's old CMS (WP), and have them set to Pending. All of their user information will be created and on Craft CMS, except their passwords will not be set, as ...
1
vote
0answers
108 views

Formerly saving issue

We've got a large formerly custom form which we're having problem saving. Saves fine with eleven fields but any more than that and it is not saving, returning the error message: Couldn't save form ...
1
vote
1answer
155 views

Front-end form submission feedback on buttons

I have some front-end forms including login and sign up which are modal windows. Currently I have no feedback for the user if they are successful or not. What's the best method to return something in ...
3
votes
1answer
245 views

Plugin: Linking elementSelectField to own plugin models

I'd like to have an elementSelectField in my plugin. The goal is to select a Company which is defined by my plugin Model. So when clicked, it'll display a list of companies in the Dialog box and you ...
1
vote
1answer
174 views

Using $model->validate() with AttributeType::Url

I have a basic model defined: protected function defineAttributes() { return array( 'id' => array(AttributeType::String, 'required' => true), 'url' => ...
3
votes
2answers
2k views

What is the best way to append CSRF token without using a form?

I have built a plugin that simply makes requests to a 3rd party API. I am calling my plugin action via ajax. I don't have a form on this page currently. Here is what I am using, but I am getting the ...
1
vote
1answer
140 views

Where do we get the SMTP Authentication information?

We are trying to get Office 365 working with a Craft website. How do we know what the host name and port number is. Plus, under SMTP authentication setting is asking for a username & password, ...
2
votes
1answer
113 views

Handling non-image uploads when updating user photo from front-end form

We have a front-end form that allows users to update their profile photo. If a user attempts to upload a non-image file, instead of the actionSaveUser controller failing and throwing an error, it gets ...
0
votes
1answer
124 views

Contact form: Twig_Error_Runtime error upon submission

Using the standard P&T contact form, I'm getting the following error when form is submitted (running locally): Twig_Error_Runtime Impossible to access an attribute ("fromEmail") on a string ...
2
votes
1answer
165 views

Saving asset title in frontend form

I have a frontend form to save an entry which includes a file upload input field: <input type="file" name="fields[newsFile]"> The upload works fine, but is it also possible to set the title of ...
2
votes
2answers
276 views

Sprout Forms: Localized version of form with translated labels?

Does the Sprout Forms plugin tap into the internationalization feature of Craft Pro, i.e. does it support adding localized versions of existing forms, similar to translated section entries? What I'm ...
0
votes
2answers
70 views

Disable image cleansing for public facing form uploads

We want the public uploads to remain in raw state. Is it possible to disable image cleansing for entries created through public facing form? (Image cleansing to continue working for uploads through ...
4
votes
1answer
548 views

MailChimp & Sprout Forms

I am using Sprout Forms for my contact forms and I want to integrate the MailChimp subscribe plugin but it looks like the MC Subscribe plugin needs to have name="mcvars[FIRSTNAME]" on the input fields ...
1
vote
1answer
37 views

Form validation plugin result in 404

I'm new to craft development, and I'm on the verge of success in the creation of my plugin, but I have a strange problem. It's supposed to save a record based on user input data. The problem is that ...
1
vote
1answer
225 views

Custom validation rules on frontend form

What would be the best way to add some custom validation rules on forms submitted on the front-end without using specific field types for it? I'm using the Guest Entries plugin that allows anonymous ...
2
votes
1answer
185 views

Edit select dropdown field in a Matrix on the front-end

Having a front-end user form where users can maintain there profile. I managed to get the single text and date field in the Matrix to be edited from the front-end but having issues with the select ...
1
vote
1answer
374 views

Front end entry form drop down field

I'm trying to update a drop down field type on an entry using a front end form. However, the input is a hidden field (not a select) This is the form code I have so far: <form method="post" accept-...
2
votes
1answer
967 views

Add, remove, and append entries to an entries field via frontend form

I'm making a one-button form, to add an entry to an entries field. Adding seems pretty straightforward, but it overwrites any previous entry that occupied the entries field. How would I append an ...
0
votes
1answer
1k views

Plugin Controller actions for entering data and redisplaying form or redirecting

I'm getting confused with how to submit forms to a plugin controller as shown briefly in the docs. I'm making a multi-page form, which saves the data on each page to the session, sending it elsewhere ...
2
votes
1answer
624 views

Multi-page form with Yii in a Craft site?

I have a Craft-based website and need to make a complex multi-'page' form on one page. The form isn't related to any Craft Entries etc, and doesn't need to save the submitted data to Craft's database (...