Getting form fields correctly
-
Hi,
I seem to be missing something in getting the form fields.
When using:
$url = $_POST[‘url-1’]; and sending this variable to 3rd party API it working ok.
When using:
$fields = Forminator_API::get_form_fields($form_id);
? ? $url = null;
foreach ($fields as $field) {
if ($field[‘element_id’] === ‘url-1’) {
? ? ? ? ? ? $url = $field[‘value’];
break;
}
and sending the $url to the same API, I get an error.
Am Igetting the value fields method correctly?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Getting form fields correctly’ is closed to new replies.