Load Forms or Groups in Forms

Surffreak

New Member
Hello all,

I'm a very beginner with Fabrik, but I love its functionality.
I couldn't find an answer to my problem anywhere, so I try it here.

A short explanation:
I build up a calender for events. Each event can be of a different type. So every event has the same details, but I want to add specific details that are displayed, depending which type you selected.

By now, I created two lists, events and categories. Additionally I created groups for the specific details.

Last I added a Dropdownlist to the events formular, which shows the different categories.


Is my plan only possible with custom Javascript? Or is there another way?


Thanks for your help,
Surffreak


PS: I use Fabrik 3.0.6
 
You can do it with the build-in element's JavaScript.
Add mutliple JS to your dbjoin element

on load hide group1 if this !=1 (assuming group1 belongs to cat. with key 1)
on change hide group1 if this !=1
on change show group1 if this ==1

for every group/categorie
 
Yeah, that works!

Thank you very much!!


Just one more question, to make the hole thing complete.

If now a user types in data for one type and then decides to change the type, the data for the first fields is still there and will be saved.

How can I avoid this problem?`Again javascript, which clears the fields?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top