Dynamic update of simple relationship list?
-
I’m trying to dynamically update the options for a simple relationship list and have form values saved.
To update the options, I’ve tried:
1. ‘pods_field_pick_data’ filter – works
2. ‘pods_field_pick_object_data_params’ filter – only works if I unset unset($object_params[ ‘options’ ][‘_field_object’])
3. ‘pods_form_ui_field_pick_custom_values’ – doesn’t work, it runs but ignores my return valueI can validate the input using the ‘pods_field_pick_validate’ filter but nothing is saved to the database. If I manually save, the saved values don’t flow through to the form.
Essentially what I am trying to achieve is:
I have a ‘person’ pod and a ‘podcast’ pod with a bi-directional relationship that records podcast participation. On the person pod, I need an input that will record which of the podcasts that a person has participated in should be featured with their profile. So I set up a simple relationship list with dummy values to be replaced dynamically. Is this approach at all feasible? If not, any suggestions as to how I can achieve this?
- The topic ‘Dynamic update of simple relationship list?’ is closed to new replies.