Questions tagged [form]

The tag has no usage guidance.

21 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
25 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
122 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
145 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
34 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
97 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
92 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
118 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
161 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
196 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
11 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
29 views

Integrate Mailchimp subscribe form in twig template

I try to embed a Mailchimp subscribe form in a twig template via: <form action="https://my-company.us5.list-manage.com/subscribe/post?u=293f" method="post" name="mc-embedded-subscribe-form" class="...
0
votes
0answers
37 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
27 views

FreeForm inline validation

I am using Freeform to handle the forms on my site. The plugin page shows the supplied demo can handle inline validation along with custom messages, but I can't seem to get this setup/see where you ...
0
votes
0answers
76 views

Notification Plugin - Internal Server Error

Have tried a couple different plugins to generate a simple email notification when someone submits a Guest Form. "Guest Entries Notification" didn't do anything. It didn't display errors or send an ...
0
votes
0answers
38 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
206 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
50 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
65 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
161 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
452 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 ...