Fibonacci
Fibonacci

Hi, I have a little bit question about field dependencies on this doc http://octobercms.com/docs/backend/forms#field-dependencies

in that example, the fields type are dropdown. How to implement in the others field.

for example,

name:
    label: Username
    type: text
greeting:
    label: Greeting
    type: text
    dependsOn: name

If I type 'Fibonacci' in field 'name' and then the 'greeting' will change to 'Hello, Fibonacci'

Thanks

beaudinngreve10852
Whybhagi
Crazymodder
Crazymodder

I only know the Input preset converter which converts Text to slugs. I though for you requirements you have to write a short javascript.

Daniel81
hi.ibnumardini56040
hi.ibnumardini56040

Crazymodder said:

I only know the Input preset converter which converts Text to slugs. I though for you requirements you have to write a short javascript.

can you give a sample code?

1-6 of 6