• Resolved HabD

    (@habd)


    Hi,

    i created a CPT with a relationship field that works as a simple list. Now I want to populate each new post of this CPT with not only one, but several values of the list. I use a comma-separated statement but it only takes the first of it as default, the following values get ignored.

    I do not find any hint in the docs of PODS. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @habd

    I’m not sure I’m following what you are trying to do. A relationship can be made a multiple relationship in the field options. You can then select several relationships on the same field.

    Is this what you mean?

    Cheers, Jory

    Thread Starter HabD

    (@habd)

    thanks for caring about my request. But it does not describe what I wanted to ask for. It is:

    I use the relationship to create a list of options like:

    Apples, carrots, oranges, bananas

    And I want to set the parameters of the custom field in a way that for any new post e.g. carrots and bananas are already set (as default values).

    in the regarding option of the CF I can set only one value to get set as default. But I did not manage to set more than one. I tried a comma-separated list nut this did not work.

    any ideas?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @habd

    Ah right, so you want to set two of the options as default.

    Well, as far as I know this is currently not supported yet.
    However, I do feel like our default value handling should get an update anyway. I’ve made an issue on GitHub to improve this feature.: https://github.com/pods-framework/pods/issues/7186

    For now, I think your only option is to use PHP filters, you could for example override the form params using the following hook: pods_pods_form_fields.

    Cheers, Jory

    Thread Starter HabD

    (@habd)

    Hi Jory, thanks for bringing this up on GitHub. Hope to see this solved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to populate a relationship field (as a list) with more than one avlue’ is closed to new replies.