Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Many-to-many, view form not displaying field 11 Jul 2016 13:00 #14204

Hello I have a problem :

I'm making a component for volunteers registration. The registration is mainly a form with the name and 2 fields : "banned areas" and "preferred areas" ( the volunteer can choose one ore more "banned areas" and on or more "preferred areas" from a drop-down list".

I have several tables :
- table "volunteers"
- table "areas"
- table "volunteer_N_bannedareas" (a pivot table between "volunteers" and "areas") for "banned areas"
- table "volunteer_N_preferredareas" (a pivot table between "volunteers" and "areas") for "preferred areas"

I can creaté the form "volunteer" with the "builder > pages > layout > item" form with the fields :
- name
- prefered areas : ( Type : N:m || Pivot table : volunteer_n_preferredareas || Value field : Title)
- banned areas : (Type : N:m || Pivot table : volunteer_n_bannedareas || Value field : Title

But when I "run in sandbox", the view does not display the "prefered areas" field but it displays the "banned areas" field,

what I'm doing wrong ?

Philippe
Attachments:

Please Log in or Create an account to join the conversation.

Many-to-many, view form not displaying field 11 Jul 2016 13:16 #14205

Try it with two different fieldnames (you now have 2 "areas")

Please Log in or Create an account to join the conversation.

Many-to-many, view form not displaying field 14 Jul 2016 22:15 #14252

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This is a limitation at the moment. It is not possible in the builder, but you can edit the relations in your models constructors.

I should have a look, in this case. It is possible to add the feature.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.104 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started