Skip to main content

Questions tagged [form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
24 views

How can I add an element with an image to a section from the site?

please tell me how to add an entry that contains an image to the desired section. I use Craft CMS 4.9.6. At the moment, I have a form on my website: <form method="POST"> {{ ...
1 vote
0 answers
73 views

URL passthrough rewrite failing when using actionInput

We are experiencing some issues with form submissions on websites that are using action inputs. If a visitor denies analytics_storage via a cookie consent plug-in. Google Tagmanager will start using ...
2 votes
1 answer
331 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
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 ...
1 vote
1 answer
123 views

Multiple editableTable in a CP page

Is it already built-in in CraftCMS to make multiple editableTable in a CP page? The behaviour would be similar to Matrix field where you add a matrix block, the matrix block appears. What I want is ...
10 votes
1 answer
3k views

How do you delete assets from a frontend form?

I am creating a proof of concept for a client in Craft where the client's customers can manage projects from the frontend of a Craft install. I have a frontend form working correctly for creating a ...
1 vote
2 answers
55 views

clickable link in Formie notifications

I have a Formie form on my site where users can request a white paper. After filling in the form, their browser opens the PDF in a separate tab. I also want to send the user a confirmation email with ...
1 vote
1 answer
250 views

Prepopulating image fields - Formie Plugin on Craft 4

I have a front end entry form for users to update their entry. It's built using the Formie plugin. I need the fields to prepopulate with the current entry content. According to the Formie docs fields ...
6 votes
3 answers
1k views

Front end edit: entry doesn’t get saved

I am trying to make entries editable from the front end and pretty much follwed the docs. When i visit my edit view, the entry-from is filled with their respective values but unfortunately no changes ...
0 votes
0 answers
21 views

Survey Question - Not Seeing Success Message

I am creating a survey for a client but when testing the survey, I am having trouble getting the Success Message or Error Message when complete ("Thank you for taking the survey" or "...
1 vote
1 answer
106 views

Add entry to entry field via frontend form

I have a frontend form that updates a single entry and sets the users field to the current user: <form method="post" accept-charset="UTF-8"> {{ csrfInput() }} {{ ...
1 vote
1 answer
35 views

How to make checkboxSelectField sortable?

i am trying to make checkboxSelectField sortable so far i have only managed with inclusion of third party scripts (sortable in jquery.ui). The code looks like this: Twig: {% import "_includes/...
1 vote
1 answer
160 views

Why is my custom route registering as a 404?

The context I have a URL schema that is either doing something new, via a custom Route (no entry set): bookings/new/* …or reviewing an existing entry: bookings/{slug} My custom route is working fine ...
1 vote
1 answer
33 views

Incorporating Freeform form into an entry

I have constructed a Freeform form, but can't see how to incorporate the form (or a link to it) in an entry. Please advise. MTiA Phil
1 vote
1 answer
53 views

Save Entry form values as Draft to translated site versions on a single submit

I have an Entry field layout where only a few Plain Text fields are translatable. Users can edit these Entries from front-end, and I'm looking for the most efficient way to let them save the ...
3 votes
1 answer
326 views

Contact Form is not working anymore since upgrading from Craft 3 to 4

After upgrading to Craft 4 non of my Craft Forms are working... getting the error "Symfony\Component\Mime\Address::__construct(): Argument #2 ($name) must be of type string, null given, called in ...
0 votes
1 answer
37 views

Register form activating other forms

So I have a contact form which shows a popup when it is submitted. I also have a registration and login form. The issue is: sometimes when a user logs in or registers an account, and you go to the ...
0 votes
1 answer
173 views

Wheelform ~ Email Notification with file upload attachment, but **not** store the file upload in assets?

I have a craft v3 site using Wheelform plugin to power a custom 'job application' form. The 'job application' form has a 'CV' upload file field. The submissions from the form are sent as email user ...
0 votes
1 answer
83 views

Adding multiple blocks for matrix in form

I am using a matrix field for registered users on my site. I want to be able to add a certain amount of matrix blocks to each users on registration (with hidden input), so I can re-use them later on. ...
1 vote
1 answer
99 views

Ajax response no longer returns true after updating to craft 4

I have a project that was initially built in Craft 3 and I'm upgrading it to Craft 4. I leverage ajax on one of the pages to save data to a user in the CMS. The following code worked in Craft 3 but no ...
2 votes
1 answer
105 views

Ajax form submission forbidden error on custom plugin

I am submitting form data to 3rd party api through a custom plugin using fetch. Im setting CSRF token in form like: <input type="hidden" id="subscribe-modal-token" name="{{...
1 vote
1 answer
169 views

Is there a way to change the author of an entry on the frontend?

So, I know that you can do this on the backend. But is there a way to change the author of an entry from a frontend form? I'm making a vacation request system and I'm wanting managers to be able to ...
0 votes
1 answer
2k views

fetch post request to plugin shows payload empty when sent as json stringify

When i send body: JSON.stringify(formData) to my plugin controller the payload is empty. When i send just as body: formData then the payload is there but json_decode(Craft::$app->getRequest()->...
2 votes
2 answers
208 views

Is there a way for a user to assign another user to a group on the frontend?

So, I'm trying to build a dashboard where the partner of the company I work for can edit users. And I want him to be able to have like a drop down to assign the user's group on the frontend. Is there ...
2 votes
1 answer
247 views

Can I change a user field with twig without using a form?

I basically just want to set the value of a users field to a different number if something happens, so that the user field is actually updated in the CMS. Can I do that without creating a form? So ...
1 vote
2 answers
181 views

Limiting form entries per day in FreeForm

I am using freeform to manage forms on my site. I'd like to limit the number of entries on a form to 200 per day. The method I thought would be best is to get the submissions for the form, and use ...
1 vote
1 answer
108 views

Limit elementSelectField to specific sections

How do I limit this elementSelectField to only allow entries within a certain section? {{ forms.elementSelectField({ label: 'Blog post', name: 'blogpost', elementType: 'craft\\elements\\Entry', ...
1 vote
1 answer
258 views

Post Request Required Error Solspace Freeform

I installed Solspace Freeform onto a new site and am getting this error on form submission.
1 vote
1 answer
97 views

Multiple login forms

I have a need for 2 different login forms: customers and professionals. Each login form is slightly different in markup and heading and has different linkages to the registrations form(s) if a visitor ...
1 vote
1 answer
150 views

How to get rules of conditional fields values on front-end, using Reasons or another solution?

I'm building a front-end form, where I'm displaying on front-end my fields following their layout within the CP: {% set section = craft.app.sections.getSectionByHandle('handle') %} {% set ...
2 votes
1 answer
152 views

Where in the world are CP form macros stored?

I'm using Sprout Reports, which makes this reference: Use the Form Macros supported by the Craft CP to keep consistent with the Craft UI. Sprout Reports will import the Craft CP Form Macros. Your ...
1 vote
1 answer
100 views

Filtering entires via tag field and checkbox field using a form

*** Edited the question I have a code that used to work fine on Craft 2 and I don't understand what I need to change to make it work on Craft 3. I am using form to filter through a channel of entries ...
2 votes
1 answer
362 views

What value does actionInput provide?

What is the value in using a hidden actionInput vs an action attribute on a form? <form method="post"> {{ actionInput('path/to/controller-action') }} </form> vs <form ...
1 vote
1 answer
383 views

I need to embed some forms into a new site

We are moving to a new Craft site and we have some forms that live on our form server. I am wanting to embed these forms into the appropriate pages. There is a PHP file that I can download that looks ...
1 vote
2 answers
262 views

Rendering form from Entry Field

I'm trying to pass an entry field type "Formfield" into a template. I have it working without passing any custom values through but when I do it outside of the render tag, No matter what I ...
6 votes
3 answers
3k views

How do I enable redactor rich text editor in a front-end form?

I have a front-end form for registered users to submit entries, however I'd like to have a WYSIWYG editor like the dashboard. How would I get redactor working with this form? My form: <form ...
1 vote
1 answer
276 views

Display message on logout (flash?)

I have looked through previous questions and answers, but don't see the following clearly explained. When my users visit /logout, they are successfully logged out and redirected to the website's ...
2 votes
1 answer
248 views

Deleting one or all Assets from a fieldusing a front end form

Good afternoon All, Im trying to setup the ability for users to delete 1 or more of their own images from a multi photo asset field and have got stuck. This is what is have so far, I assumed adding a ...
1 vote
1 answer
250 views

Contact form submission type in Contact Form Extensions

I have a site with three forms that use P&Ts Contact Form plugin. My client now wants the submissions to be visible in the backend and have a 'download to CSV' if possible. I was looking into the ...
1 vote
1 answer
2k views

Craft 3 Registration Form Success Redirect

Is it possible to redirect the user to a specific page after they successfully complete the front-end registration form (before activation)? I've tried adding: <input type="hidden" name="action" ...
1 vote
1 answer
269 views

Why the entry-Variable doesn't exists after search?

I created a search form in my navigation and as it is described in the documentation, I created an search/results.html. And actually it works so far. Now comes the problem: The results.html extends ...
1 vote
1 answer
472 views

Forgot Password - Success Message/Flash Message after setting new password on the login screen

Quick question about password reset (forgot a password on the front-end) So I have set my 'setPasswordSuccessPath' => 'login' so that when the new password is set, they will be taken to ...
1 vote
1 answer
294 views

Missing field validation on user account edit

I've been implementing a user account page with Craft Commerce and copied over the template found here: https://docs.craftcms.com/v3/dev/examples/user-profile-form.html#simple-profile The issue is ...
1 vote
1 answer
54 views

How to relate a long survey to a user and later query by values

I'm working on a new project that requires users to fill out a lengthy survey to assess their skills. These skills will then be used to query for users with a front-end interface. My question has to ...
1 vote
1 answer
33 views

Building my first Sprout Form and need ability to add Tags input

I'm building my first Sprout Form and I need a tags relational field, but where the user filling in the form can add their own tags, but if similar/matching tags exist then they can select them, like ...
1 vote
1 answer
390 views

Can the Freeform Plugin be used with headless mode in Craft?

Anyone know if the Freeform plugin is compatible with Craft's headless state. Or if there are any other form plugins that are?
0 votes
1 answer
204 views

How to save data from a form in Craft? Explain with an example?

where do you handle the POST requests? where do you write the validation rules and flash error messages? where do you write save to db code? (mainly i want to know how do you route a POST request to a ...
1 vote
1 answer
66 views

Avoid saving $_POST in Craft logs for certain URLs

We know that Craft logs the $_POST variable in web.log. I wonder if we have some sensitive data going through the server side (collected from a front end form), even if we don't save it in the ...
1 vote
1 answer
100 views

Is it possible for photo's to be uploaded to a form?

I would like to create a form for competition entries. However, there needs to be the option for entrants to upload pictures with their entry form, is this possible? Many thanks
0 votes
0 answers
96 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 ...

1
2 3 4 5 6