This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Incremental
Incremental

Hello, I'm quite new to October and would like to have a frontend form with dynamic fields appearing/disapearing based on selections.

In backend, I've done it easily with Builder, but in frontend, I don't know how to start.

In backend YAML, it's quite easy with :

fields:
    categ:
        label: 'Category'
        type: radio
    type:
        label: 'Event Type'
        type: balloon-selector
        dependsOn: categ

Thanks to put me on the way to do it in frontend

Last updated

mjauvin
mjauvin

I don't think there is an equivalent for front-end, you'd have to create/find a javascript library that would help you do that.

Incremental
Incremental

Do you have some clues or links, and how to include it in frontend, I'm new to that ?

Should it be used in a form or in a normal page ?

Last updated

JenniferLopez
JenniferLopez

The beauty of the frontend is that you can use any Javascript library you want. Perhaps you can look at some jQuery tutorials for doing dynamic forms, as a suggestion.

There's also a lot of form building plugins in the Marketplace that might make it easy to deploy a form to the frontend, for example:

Incremental
Incremental

Thanks for your answer, I'm trying to create a component with dynamic fields selection for querying a database.

I will search for JQuery integration...

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.