Questions tagged [form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
324 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
271 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
373 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
402 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
512 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
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 ...
1
vote
2answers
569 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
112 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 ...
2
votes
1answer
191 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
336 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
213 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
3k 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
229 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
121 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
138 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
236 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 ...
3
votes
2answers
363 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
77 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
635 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
40 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
333 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
224 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
426 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
1k 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
2k 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
807 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 (...
1
vote
1answer
790 views

FormBuilder - PHP notice Trying to get property of non-object

I'm trying to do a form, I'm using FormBuilder plugin. I have the form and the fields, but when I try to acess ../admin/entries to manage the content of the page, I have this error, why is that? What ...
2
votes
1answer
335 views

Plugin development: Forms

I'm embarking on my first plugin build. The docs are OK, but lacking in some areas or maybe I'm just looking in the wrong place. The settings page allows you to define any settings and when rending ...
0
votes
0answers
440 views

Front End Upload Form for guests

I've put together an entry form with a front end file upload, following the excellent answer here. It works perfectly, for logged in users only. I'm wondering is this method is at all workable for ...
0
votes
1answer
60 views

How do I create a page with a dynamic id?

Here’s an example: I have a job listing at www.example.com/designer and the user hits "apply" on that page. The user is then taken to a form. How can I know that the user came from www.example.com/...
2
votes
1answer
228 views

Mandrill integration not sending email for front-end registration form

Update Emails only send out when you're not logged in as admin from the registration form. No errors received in dev mode, user created, but no activation email sent. Definitely not getting passed to ...
3
votes
2answers
259 views

Auto-populate login form when accessed via client intranet

My client has a private Craft site only accessible to their employees. To access the site they all use the same username and password on a front-end login form. They are now wanting to link to this ...
3
votes
1answer
430 views

Is it possible to cache a faceted search form?

I have created a search form which allows user to search multiple categories groups and multiple categories within those groups. So I have Type [] Category 1 [x] Category 2 [] Category 3 ... ...
0
votes
1answer
1k views

Form Builder plugin returns 'undefined' when I submit

Today I wanted to add a contact form to my webpage, and I chose the Form Builder plugin for its ease of use. So far all went well, and I managed to display the form in the page (not that difficult), ...
2
votes
1answer
519 views

Entries Field Type Validation

I am having some issues understanding why validation is not working on my entry forms. I've got an entry with several field types which aren't of type "entries" and the required validation is working ...
4
votes
1answer
365 views

Simple search using a single category in Craft CMS

I am relatively new to Craft and I am having a little trouble understanding how to build a simple search which will allow me to have dropdown of my categories which will return the selected category ...
3
votes
1answer
200 views

Pre populated New Entry

Is there a way to pre-populate the 'New Entry' form in the back end? The context here is a calendar where you can click on a day and see a list of events and have a "New Event" button. The "New ...
1
vote
1answer
334 views

Where to place a front-end 'entry form'?

I'm trying to add an entry form outside CP (for users with proper permissions), using this example: http://buildwithcraft.com/docs/templating/entry-form but there's no mentioning of how/where to add ...
2
votes
2answers
1k views

Get the ID of a new entry when it's saved

Is there a way to save a new entry with a template form, then pass the ID of that new entry along to the redirect location? The use case is, I'm interacting with a scheduling service and want to ...
1
vote
1answer
55 views

Select statement validating as true when no value selected?

I have a plugin with record and model both setting required to true for a frontend form entry: 'fieldName' => array(AttributeType::Name, 'required' => true), However it is still validating ...
2
votes
1answer
1k views

How to populate Category field form frontend form?

I have a frontend form that has a select list for language. This field will allow for one language to be selected. In the backend I have a field set up for my entries as a category field populated by ...
2
votes
1answer
1k views

Entry Form Validation on Front End Form

I have a front end form based on the entry form example provided by craft documentation which allows logged in users to submit an entry to a specific section. Form validation is not working in that ...
0
votes
1answer
497 views

Frontend Profile - Listing out Radio Buttons

In the official documentation it explains how to let users customize user fields in the frontend, such as: <label for="bio">Bio</label> <textarea id="bio" name="fields[bio]">{{ ...
1
vote
1answer
143 views

How to split the user login error message between username and password?

Hoping this is possible. I want to split the username and password error message to return it separately depending whether it is username or password that is incorrect and not just a the generic (...
3
votes
1answer
1k views

How do I retain form input values after submitting error-ridden form containing matrix field inputs

I'm looking for a way to keep matrix inputs populated with their original value after submitting a form containing errors. I'm already aware of the method of doing this for general inputs as shown ...
1
vote
1answer
113 views

Set custom field true email link

I'm working on a website where members can add entries with the frontend form. After creating the entry I want them to change the "status" with custom field by sending them an email link. The link is ...
6
votes
1answer
1k views

Ajax front-end user registration form - not returning JSON

I have a user registration form on the front-end of a site that is working well as a standard form, but when I try to use ajax submission, I'm getting an HTML response rather than JSON. Here's the ...
1
vote
2answers
1k views

Change profile in frontend with ajax

I'm trying to update some checkbox fields through the frontend with ajax. After clicking / change of the checkbox the form needs to update the profile. Template code: <form class="form-...
1
vote
1answer
198 views

Repopulate a static select input

I have a form that contains a static select input of U.S. States: <select id="state" name="state" class="form-control"> <option value=""> Select </option> <option value="AL">...
6
votes
1answer
837 views

Delete items from frontend with ajax

I'm trying to delete items through the frontend with ajax. It's working now but want to be sure if this is a safe method: $(".delete-file").click(function(){ var data = { entryId: $(this)....