Hi,
I have a custom post type called "Jobs" with a custom field with the slug "advertising-media". It is set as checkboxes.
When an admin user posts a job I would like then to check from a list of advertising media, for instance:
Media 1
Media 2
Media 3
Media 4
At the same time I have a gravity form which asks candidates where they saw the job advertised. This could either be a radio button or select field (I'm not too fussed). I would like this field to be dynamically populated from the options selected by the admin user. For instance if the admin user selected Media 1, 2 and 4 the candidate user will be presented the a drop down/radio button list of:
Media 1
Media 2
Media 4
How can I achieve this?
Hi, I'm not a Gravity Forms expert so I'm not sure how to populate one of their fields dynamically. That's something you would have to ask their support team about. Is it possible to use a third-party shortcode to populate the field values? What syntax should the shortcode produce? Can they provide examples?
I can show you how to output checkboxes custom fields with Types shortcodes, however checkboxes are stored as serialized data in Types fields, so the options are notoriously difficult to merge with other systems:
https://toolset.com/documentation/customizing-sites-using-php/functions/#checkboxes
You can click the orange +More button to see examples of interacting with checkbox fields using shortcodes and PHP.