• Resolved xuzo

    (@xuzo)


    Say a website has 300 categories, the use has to scroll down forever to find the category he needs, is there a way to add a default category on the select list, and then it’s child items also if possible?

    So when click on select for instance it would drop down like this?

    – Felines
    — Tigers
    — Lions
    — Jaguars

    I’ve read the documentation and seen things like:

    Set Default Value via Parameter?
    And
    Customized?<em style=”user-select: auto;”>WHERE

    tried inputing stuff in after reading documentation like:

    education_requirements.id = 50

    Where category ID is 50 and field name is education_requirements

    But can’t get this working, is this even possible?

    • This topic was modified 1 year ago by xuzo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @xuzo

    The default value is only used when creating a new item. It’s not related to front-end or anything.

    For front-end there are many plugins available that create lists etc. but Pods doesn’t include such frontend features. You can create it yourself to your liking.

    I might be misunderstanding what you are looking for of course. Do you perhaps have an example?

    Cheers, Jory

    Plugin Support Paul Clark

    (@pdclark)

    Closing due to no response. Please open a new ticket if you were not able to find a solution.

    Generally, for frontend Pods forms, default values for a field can be set using the Pods Dynamic Field Values API with JavaScript: https://docs.pods.io/code/dfv-js-api/

    There is a simple/generic example of setting a field value under the heading Set field value for a field.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to set default category on relationship field input?’ is closed to new replies.