Skip to main content

Questions tagged [form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
770 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 ...
Ian Ebden's user avatar
  • 894
6 votes
1 answer
820 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 ...
Lori's user avatar
  • 866
1 vote
1 answer
698 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 ...
Lori's user avatar
  • 866
1 vote
1 answer
711 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 ...
Ryan's user avatar
  • 1,952
1 vote
1 answer
38 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'...
jarnof's user avatar
  • 25
3 votes
1 answer
141 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 ...
Prasanna's user avatar
2 votes
2 answers
145 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.
Prasanna's user avatar
0 votes
0 answers
185 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 ...
Roi Agneta's user avatar
  • 1,463
2 votes
1 answer
165 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, ...
Matt Ellis's user avatar
2 votes
1 answer
467 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 ...
Maxim Siebert's user avatar
1 vote
1 answer
110 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 ...
Zach Shallbetter's user avatar
0 votes
1 answer
119 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 ...
jnkz's user avatar
  • 1
1 vote
1 answer
183 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 ...
MISC's user avatar
  • 1,019
1 vote
2 answers
382 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"...
Jacob's user avatar
  • 282
1 vote
1 answer
143 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 ...
BillyMedia's user avatar
1 vote
1 answer
92 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 ...
molmol's user avatar
  • 13
3 votes
2 answers
1k 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 ...
Tim Everts's user avatar
0 votes
1 answer
703 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 ...
Kenny Bones's user avatar
0 votes
1 answer
307 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 ...
Rich Holt's user avatar
1 vote
1 answer
187 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, ...
Philip Jones's user avatar
6 votes
1 answer
504 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 ...
Pindo's user avatar
  • 203
0 votes
2 answers
80 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 &...
Paul Frost's user avatar
  • 1,060
1 vote
3 answers
2k 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 ...
Ryan's user avatar
  • 1,952
3 votes
1 answer
76 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" ...
Seán O'Grady's user avatar
0 votes
1 answer
780 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"...
Marion Newlevant's user avatar
5 votes
2 answers
1k 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 ...
Ian Nebbiolo's user avatar
0 votes
1 answer
710 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 ...
JackO's user avatar
  • 133
1 vote
1 answer
369 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 ...
Nicole Lambon's user avatar
2 votes
1 answer
500 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 (...
Steven Grant's user avatar
  • 1,855
1 vote
1 answer
516 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 ...
Rob's user avatar
  • 865
1 vote
1 answer
440 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....
shorn's user avatar
  • 438
0 votes
2 answers
357 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 ...
secondbridge's user avatar
2 votes
1 answer
414 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: {% ...
Christopher Healey's user avatar
0 votes
1 answer
493 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: ...
Steve Rowland's user avatar
0 votes
2 answers
554 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 ...
LessMore Creative Studio's user avatar
0 votes
1 answer
1k 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 ...
mmc501's user avatar
  • 1,789
2 votes
2 answers
694 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 ...
taylor's user avatar
  • 1,128
1 vote
0 answers
114 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 ...
Cole Henley's user avatar
  • 1,741
2 votes
1 answer
253 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 ...
richardpixel's user avatar
3 votes
1 answer
438 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 ...
Ryan's user avatar
  • 613
1 vote
1 answer
256 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' => ...
taylor's user avatar
  • 1,128
3 votes
2 answers
5k 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 ...
Damon's user avatar
  • 4,706
1 vote
1 answer
524 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, ...
craftnovice's user avatar
2 votes
1 answer
148 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 ...
John O's user avatar
  • 391
0 votes
1 answer
167 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 ...
Jae Barclay's user avatar
3 votes
1 answer
347 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 ...
fingerfood's user avatar
3 votes
2 answers
408 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 ...
Avant la lettre's user avatar
0 votes
2 answers
102 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 ...
Souvik Das Gupta's user avatar
4 votes
1 answer
690 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 ...
ljm's user avatar
  • 141
1 vote
1 answer
47 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 ...
ovesco's user avatar
  • 271