make child field appear only when master field is selected?

More
5 years 5 months ago #75236 by Mel
I am very new to FlexiContent but I have figured out how to make conditional fields (I think.). My problem is that child fields are visible in the form all the time. I would like it so that the child field is not visible and only appears when a choice is made in the master field.

For example if the form asks 'Do you have pets?'. The choices are 'Yes' and 'No'. If the user chooses 'No' nothing happens and 'No' is recorded when the form is submitted. If the user chooses "Yes" then the child field appears with the question 'What type of pet?' and 3 choices: 'Cat' 'Dog' and 'Other'. And after that, if they choose cats, we could have another child field asking 'How many cats? and so on

So the child fields are not shown and only become visible if the right choices are made. How can I make it work like this? Thanks for your help.

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

More
5 years 5 months ago #75238 by micker
Hello for now flexicontent cant do it without coding
You Can add JS script in your item form (go to your type and form tab and add JS inside)

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
5 years 5 months ago #75258 by Mel
Thank you micker for your reply. Unfortunately I have no coding skills at all so please let me know if I need to get a coder to make a script for me?

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

More
5 years 5 months ago #75259 by micker
hello we can do a custom code for you for free ... working on flexicontent is already a big work
some exemple on google stackoverflow.com/questions/6471574/show...-based-on-user-input

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
5 years 5 months ago #75260 by ggppdk
Hello

we need to add this

i am thinking to do it using the "showon" JS of Joomla or use our own

i am towards using the "showon" JS of Joomla

but also need to decide the way to add this into the configuration


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
5 years 5 months ago - 5 years 5 months ago #75262 by micker
yes need to have a cascading open (showon multi field)
Maybe a cascading tab with a repetable field and rules
if [value in this field] [=/=!] [hide/show] [select an other field]
[And/Or]
if [value in this field] [=/=!] [hide/show] [select an other field]
etc ...
but maybe to complexe

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]
Last edit: 5 years 5 months ago by micker.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.302 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