Questions tagged [form]

The tag has no usage guidance.

22 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
32 views

Asset Upload Form Field Error States

I currently have an asset upload field, but I'm trying to make it call errors back if the image isn't an extension that's set within the field, allowing users to understand why the form didn't save. ...
2
votes
0answers
147 views

Is the Craft Queue suitable for processing form submissions?

I am looking to queue my form submissions to be processed in the background. I want to be able to only keep user data in the system/database as long as required. This will mean keeping it to debug it ...
2
votes
1answer
181 views

Add Dynamic Elements In Forms

I'm needing to add a dynamically added dropdown input field for my form, as is commonly done with javascript. How would this be possible? In other words, there may be more than 1 dropdown desired by ...
1
vote
0answers
71 views

Sanitize form input

I'm trying to sanitize form input values in my plugin. Yii2 framework provides the following validation method: https://www.yiiframework.com/doc/guide/2.0/en/tutorial-core-validators#filter It says ...
1
vote
0answers
113 views

Craft 3: Possible to merge checkbox and text values from a frontend form and put into a plaintext Craft field?

Is it possible to submit checkbox array and text values on a front end form into a plaintext Craft field in Craft 3? My solution worked in Craft 2 but it broke in Craft 3 due to some under the hood ...
1
vote
0answers
117 views

How can I create a Module/Plugin to edit multiple entries via a single front-end form in Craft 3?

Scenario: I have a Structure section called Competitions that allows users to submit one or more (usually three maximum) entries to judged photo competitions. However, they can only submit one or two ...
1
vote
0answers
129 views

Error message regarding password in user registration form

I have a custom registration form in my Craft site based on this info. https://docs.craftcms.com/v2/templating/user-registration-form.html And I want to show error message when the password doesn't ...
1
vote
0answers
176 views

Front End New Entry Form

I am trying to create a form that allows users to rate a restaurant (which is another section) by creating a "userRatings" section entry. userRatings has three fields: a dropdown field called ratings, ...
1
vote
0answers
228 views

Can't dynamically add value to hidden input Sprout field

I'm trying to add a hidden input with Sprout forms and Sprout fields but I can't dynamically add a value to the input attribute. I have a custom form template in craft/templates/_forms/field.html in ...
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 ...
0
votes
0answers
32 views

Freeform form throws error on submitting hidden field with JSON

I've been running into a strange error with the Freeform plugin. I have made a form that has a hidden input field which gets occupied with JSON. This JSON data then is decoded in the e-mail ...
0
votes
0answers
13 views

JS POST setting new password with save-user re-submission not working with returned CSRF token

I have an AJAX form that sets a new password (using users/save-user) for the current logged in user (not an admin). It works for the first time but when I re-submit with the new token, a 400 Bad ...
0
votes
0answers
7 views

Fields filled out via JS randomly show up empty?

I've been working on a client's website and have come across a puzzling issue; the form is set up to take several separate fields and combine it all into one field (eg. there's 3 separate fields for ...
0
votes
0answers
10 views

Track User selected items to send for Inquiry through Form. Better Craft Way?

I'm new to Craft and wanted to ask if there is a better/easier/more elegant "Craft" way to do something. On an old site that I'm transferring to Craft, I have a simple bit of Javascript that ...
0
votes
0answers
18 views

Fail validation of frontend form if field value is not unique

I was surprised to see that there is no plugin in the store for the purpose of requiring unique values on fields. I need to create a form that will not let front end users create an account if they ...
0
votes
0answers
69 views

Frontend Form for editing entries HTTP Exception

I took the example form of the craft CMS Entry Form Documentation page and tried to use it on a test site. However i always get a HttpException after submitting the Frontend Form. Here's the Stack ...
0
votes
0answers
46 views

Add Matrix Blocks to existing Entry with Form without discarding existing Matrix Blocks

When I want to save an new Matrix block with an form to an existing Entry: <form method="post" accept-charset="UTF-8"> {{ csrfInput() }} <input type="hidden" name="action" value="entries/...
0
votes
0answers
252 views

Craft 3: Custom “Set Password Form” not working

I'm trying to make a custom page for setting a new password. I found the following in the docs: https://docs.craftcms.com/v3/dev/examples/set-password-form.html I created a file called setpassword....
0
votes
0answers
56 views

Form in Front End Template Reference Plugin for LDAP

I am a Craft newbie, and I'm currently making a few custom templates, learning Twig, etc. My question is: in including a form in my template code, how would the form be coded (Twig or HTML)? Is there ...
0
votes
0answers
69 views

Form Error Causes Page to Reload Without an Entry ID

I have a section (single) that uses a template that shows information from the entry and includes a form (uses entry form) that posts to a different section (event registration info). All is fine as ...
0
votes
0answers
169 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 ...
0
votes
0answers
469 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 ...