elementor / elementor/elementor
Get form_id on "elementor_pro/forms/new_record" hook
Open
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
Assessment
This issue has not been assessed yet.