# New form component

**URL:** <https://forums.realmacsoftware.com/t/new-form-component/46808>\
**Category:** Elements\
**Created:** [March 20, 2025, 10:50pm UTC](https://forums.realmacsoftware.com/t/new-form-component/46808 "2025-03-20T22:50:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Godber](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/godber/32/26521_2.png) [@Godber](https://forums.realmacsoftware.com/u/Godber)\
**Post date:** [March 20, 2025, 10:50pm UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/1 "2025-03-20T22:50:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [March 20, 2025, 11:11pm UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/2 "2025-03-20T23:11:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![destinations2see](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/destinations2see/32/27937_2.png) [@destinations2see](https://forums.realmacsoftware.com/u/destinations2see)\
**Post date:** [March 20, 2025, 11:41pm UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/3 "2025-03-20T23:41:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![destinations2see](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/destinations2see/32/27937_2.png) [@destinations2see](https://forums.realmacsoftware.com/u/destinations2see)\
**Post date:** [March 21, 2025, 12:20am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/4 "2025-03-21T00:20:31Z")

</div>

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”  
}

---

<div class="post-metadata">

**Author:** ![WagnerTenor](https://avatars.discourse-cdn.com/v4/letter/w/49beb7/32.png) [@WagnerTenor](https://forums.realmacsoftware.com/u/WagnerTenor)\
**Post date:** [March 21, 2025, 1:07am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/5 "2025-03-21T01:07:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [March 21, 2025, 1:48am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/6 "2025-03-21T01:48:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Godber](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/godber/32/26521_2.png) [@Godber](https://forums.realmacsoftware.com/u/Godber)\
**Post date:** [March 21, 2025, 7:41am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/7 "2025-03-21T07:41:18Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [March 21, 2025, 7:56am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/8 "2025-03-21T07:56:06Z")

</div>

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.

 ![CleanShot 2025-03-21 at 08.54.29@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/f/0/f07ec45c51bd231de904e6b6198fe51803e8038a.png)

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 🙂

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [March 21, 2025, 7:56am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/9 "2025-03-21T07:56:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Godber](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/godber/32/26521_2.png) [@Godber](https://forums.realmacsoftware.com/u/Godber)\
**Post date:** [March 21, 2025, 7:57am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/10 "2025-03-21T07:57:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [March 21, 2025, 8:08am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/11 "2025-03-21T08:08:39Z")

</div>

> [@destinations2see](#):
>
> {  
> “success”: false,  
> “error”: “Unable to open using mode r: Path cannot be empty”  
> }

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

---

<div class="post-metadata">

**Author:** ![Godber](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/godber/32/26521_2.png) [@Godber](https://forums.realmacsoftware.com/u/Godber)\
**Post date:** [March 21, 2025, 8:09am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/12 "2025-03-21T08:09:56Z")

</div>

ive sent to dan  
ive removed the attachment bit now

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [March 21, 2025, 8:22am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/13 "2025-03-21T08:22:42Z")

</div>

> [@handshaper](#):
>
> 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.

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!

 ![CleanShot 2025-03-21 at 09.16.21@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/5/7/57818369ffc2b372bf60a7f6cdde21de1683b781.jpeg)

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

---

<div class="post-metadata">

**Author:** ![Godber](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/godber/32/26521_2.png) [@Godber](https://forums.realmacsoftware.com/u/Godber)\
**Post date:** [March 21, 2025, 8:23am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/14 "2025-03-21T08:23:33Z")

</div>

how do I send privately?

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [March 21, 2025, 8:25am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/15 "2025-03-21T08:25:50Z")

</div>

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

**Edit:** ah! I just got another email from you 👍

---

<div class="post-metadata">

**Author:** ![Godber](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/godber/32/26521_2.png) [@Godber](https://forums.realmacsoftware.com/u/Godber)\
**Post date:** [March 21, 2025, 8:45am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/16 "2025-03-21T08:45:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![destinations2see](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/destinations2see/32/27937_2.png) [@destinations2see](https://forums.realmacsoftware.com/u/destinations2see)\
**Post date:** [March 21, 2025, 9:52am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/17 "2025-03-21T09:52:23Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Godber](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/godber/32/26521_2.png) [@Godber](https://forums.realmacsoftware.com/u/Godber)\
**Post date:** [March 21, 2025, 9:54am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/18 "2025-03-21T09:54:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![destinations2see](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/destinations2see/32/27937_2.png) [@destinations2see](https://forums.realmacsoftware.com/u/destinations2see)\
**Post date:** [March 21, 2025, 10:33am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/19 "2025-03-21T10:33:26Z")

</div>

> [@ben](#):
>
> 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.

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.

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [March 21, 2025, 10:36am UTC](https://forums.realmacsoftware.com/t/new-form-component/46808/20 "2025-03-21T10:36:07Z")

</div>

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 🙂

[Next page](https://forums.realmacsoftware.com/t/new-form-component/46808.md?page=2)
