Getting webform field visibility in the API - possible bug / missing feature?
Hi there Podio specialists,
We are trying to make our own form rendering for a CMS system and we would like the connecting code to automatically figure which fields should be shown and which should be hidden in the same way as the webforms does from the Webforms section of the Podio app.
Below is the output from a test app for cars:
The request is $getApp = PodioApp::get( APP_ID, array('type'=>'full') );
This is the response for one of the fields called Car, which i disabled on the web form
PodioAppField: Array
(
[field_id] => 53920518
[type] => text
[external_id] => car
[config] => Array
(
[default_value] =>
[description] =>
[settings] => Array
(
[size] => large
)
[required] =>
[mapping] =>
[label] => Car reference
[visible] => 1
[delta] => 1
[hidden] =>
)
[status] => active
)
We thought the value "visible" would show wether or not the field is visible in the webform, but it's always "1".
The value "hidden" is always empty and this way we cannot get any difference on all fields in the webform.
Would it be possible to fix / add this information so we can do our own forms with our own validation and filtering rules before the external form system saves the data to Podio?
Thanks for a GREAT platform!
- Lars
-
Hi Lars,
If you want to see the fields on a webform just get the webform: https://developers.podio.com/doc/forms/get-forms-53771
All the best,
Andreas
Please sign in to leave a comment.
Comments
2 comments