11 years ago
1
Topic
Hello,

I built a Site Form with 2 fields, where the 2.field is visible, when in the 1.field a certain value is selected.
Like this::
Field 1 (Select Simple): Manufacturer
Values to select: Man1, Man2, Man3, miscellaneous
Field 2 (Text): miscellaneous manufacturers
State/Trigger: Field 2 is hidden when Field 1 is different miscellaneous

This works fine.
But how do I construct a Content Type field, that shows
  • the value of Field 1, if the value is different miscellaneous
  • or
  • the value of Field 2, if the value is equal miscellaneous

I tried to do this with a 3. field, which
  • is filled by ID (of Field 1=530) when Field 1 is different miscellaneous
  • or
  • is filled by ID (of Field 2= 514) when Field 1 is equal miscellaneous
Plesae see screenshot

(miscellaneous= Sonstige, Versuchsfeld 3= Field 3, Hersteller_elt_Rolli=Field 1)

But it doesn’t work!
Did I trigger it in the right way?
How has Field 3 to be saved? Is it ok, that it is saved , even if the value is already saved in the database?

Can anybody please give me an hint?

Thanks for your time,
best wishes
_Alex
Get a Book for SEBLOD
10 years ago
0
Level 1
Hi,

So your request is just about displaying the info on the front ? If so, maybe a variation (or a position override) could solve your problem.

Just place the field #1 and #2 in a specific position and in the variation (or position override), do your test in php to check the value and display the right info...

Olivier
Get a Book for SEBLOD