elementor / elementor/elementor

Get form_id on "elementor_pro/forms/new_record" hook

Open
#17,102 1 comment 1 reaction 0 assignees View on GitHub
mod/q*
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

Hi,

I use:
PHP: 8.0.13
WordPress: 5.8.2
Elementor: 3.4.8
Elementor Pro: 3.5.2

I create a Form:
- Set: Content => Form Fields => "Form Name": Something Else
- Set: Content => Additional Options => "Form ID": my_form_id

I create a function for "elementor_pro/forms/new_record" hook

I want get Form ID for some programming.

`$form_name = $record->get_form_settings( 'form_name' ); `

=> I got: "Something Else"

`$form_id = $record->get_form_settings( 'id' ); `

=> I got: "5ed38b0"

The "5ed38b0" is in the:

``

The full html:

```



...
```

How can I get id="my_form_id" in my function? Is this a bug?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.