Display a field depending the value of another. Is it possible?

More
4 years 7 months ago - 4 years 7 months ago #78515 by grabit
Hi Micker,

And if my field1 is a checkbox how can I manage that solution?

An Apple a days keeps the doctor away
Last edit: 4 years 7 months ago by grabit.

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

More
4 years 7 months ago #78516 by micker
hello you mean multi value in result ?
www.php.net/manual/fr/function.in-array.php

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
4 years 7 months ago #78518 by grabit
Non.

My field 1 is a checkbox.with values 0,1,2,3

An Apple a days keeps the doctor away

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

More
4 years 7 months ago #78519 by micker
my code works with any single value

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
4 years 7 months ago #78520 by grabit
Yes but the answer of that field can be
Nothing
0
1
2
3
0,1
0,2
0,3
1,2
1,3
0,2
...

An Apple a days keeps the doctor away

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

More
4 years 7 months ago #78521 by micker
in_array can be a solution
but need to understand more the different case
and if value is a number switch can be more usefull thant if

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.165 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline