What GF field is correct for use with a Pods relation field (multy)?
-
Hello. Could you please help me to solve next problem.
Below is not an actual example but just an attempt of a simple illustration of my problem.I have two ACT pods, let say ‘films’ and ‘actors’. I may store variable qty of actors in ‘films’->’actor’ relation field.
When create new ‘film’ item from the back-end and add actors in relation field everything works fine. For the same purpose I’ve decided to make front-end form using GF and Pods GF Add-on.
In GF form I created repeatable ‘List field’ (from ‘Advanced Fields’ section) called ‘Actors’. Then I created Pods Feed and mapped GF field ‘Actors’ with pod’s ‘actors’->’name’ field. GF ‘List Field’ actually is not a selection field. And it is ok. Because I have a very large list of ‘actors’ in table and more preferably copy-paste their slug’s into this field instead of using multy selection field. I added several actors such way and submitted the form.
After I get the error: array_keys() expects parameter 1 to be array, string given in …\Pods_GF.php on line 3521
What I’m doing wrong way and what GF field you can advise to use in such case?
Thanks in advance.
- The topic ‘What GF field is correct for use with a Pods relation field (multy)?’ is closed to new replies.