New form component

cant seem to get it to work? should the button in the submit box be linked to something…im pretty sure my form credentials are right as they are the same as a form I have working in classic. I just copied your form and put my credentials in.

Can you share the project with me (privately) so I can take a look at how you have it setup?

Are you running the right PHP version? The Form Component in Elements requires PHP 8.x or newer.

I have problems here too. First, the server reported that at least PHP 8.1 is required. I had 8.0. After I have updated PHP, the following error message from the server is now coming when hitting the submit button:

{
“success”: false,
“error”: “Unable to open using mode r: Path cannot be empty”
}

Ok guys, I am completely confused. How do I get PHP and Elements to work together? What do I need to do? Thanks

Not working for me as well.

I used the same credentials that I use on one of my existing sites where it works flawlessly. But for some reason it is not working in Elements. To simplify testing I used the form in the Component sample that Dan posted today.

Clicking on the buttons appears to do nothing. I don’t see any send confirmation or error. I am on the latest version of PHP.

hi just looked on my server at the PHP Settings it was on version 8 with the choice of upgrading to 8.1 8.2 8.3 8.4 should I do that first and do I go for 8.4?

For anyone experiencing issues with the Form, please first ensure you’re running a compatible PHP version.

We’ve built in an easy way to check this—just append ?apicheck to the URL, so something like: http://my-forms.com/form-page?apicheck

An on-page notification will pop up letting you know whether your PHP version is compatible.

If your PHP version is compatible but you’re still having issues, feel free to share the URL and/or project with either myself or @dan and we’ll take a look :slightly_smiling_face:

I would recommend upgrading to the latest version possible, which as of right now is PHP 8.4.

Bon ..I have done

ah ive just noticed it says the changes could take uo yo 20 mins to apply also I turned on error reporting on the servers end

are you using the Attachment component? Could you send me your project via DM? :slight_smile:

ive sent to dan
ive removed the attachment bit now

Dan’s form example doesn’t include either the Success or Error components, so no content will be shown in either case.

You could add both the Success and Error form components to the Form, place some Text inside of both and then retest your form.

This content will be automatically shown depending on if the form submission was successful, or not!

If you’re still having issues I’d need either the project and/or a URL where your form is published to :slight_smile:

how do I send privately?

Just email it on over to me and I can forward it on to @ben :slight_smile:

Edit: ah! I just got another email from you :+1:

give it an hour to make sure all the PHP settings have updated on my server

Indeed, the second line of the error disappears after removing the attachment component. The error message obviously occurs if you do not insert an attachment.

However, it still doesn’t work. Now it simply says:
{
“success”: false,
}

Before I send the project, I will do another PHP upgrade and follow the instructions in your newer posts. Let’s see if it helps :slight_smile:

I dont get any of these error messages and dont get a success or failure message either

I suggest that this be added in the example, because we probably all fell for it at first. Most will first try it with this example, and expect everything to be configured to work.

Yep, that’s a good idea!

Eventually, we’ll have Templates that include all of these kinds of setups—so you’ll be able to quickly and easily drag in components that are 100% ready to use :slightly_smiling_face:

1 Like