Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Show/hide a paragraph of text based on Confiform field

Tamara Blake July 21, 2020

I am working on a Confiform where there is a dropdown selection for state (CA, AZ NC etc.) Depending which state is selected I need a block of text to show up with detailed instructions - 100+ words.

Any suggestions how to do this?

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
July 22, 2020

Hi

 

Do you have separate instructions for each option (state)?

How do you plan to manage those instructions? Knowing this could help me to give a better advise on the data and form design...

Alex

Tamara Blake July 22, 2020

Yes - there are separate instructions for each option or group of options.

ie:

Option 1 - Instructions on how to proceed ...

Option 2: - A different type of instruction ...

Option 3, Option 4 - A completely different instruction ...

As far as managing them - as long as I can format them in a normal way it doesn't matter how they are contained on the page, Div, Span etc -  not a pdf though

I understand using Rules and the IFTTT field just don't know the best way to do this.

Alex Medved _ConfiForms_
Community Champion
July 22, 2020

You can have them on the FormView, in some containers, identifiable by an ID for example. DIV macro is a good example of a container from Content Formatting plugin - https://marketplace.atlassian.com/apps/247/content-formatting-macros-for-confluence?hosting=datacenter&tab=overview (can have other macros inside)

And then have the Field Definition Rules with Show/Hide Container rule(s) - showing/hiding these DIVs based on the conditions / selections made by the user (you just specify a CSS selector, basically #ID_OF_A_DIV you set)

 

For simple containers you can use our user macro (no need for any other 3rd partu plugin) - https://wiki.vertuna.com/display/VERTUNA/Div+container (due to the bugs in user macros rendering (by Confluence) it will not work for some HTML markup (we know that textarea is problematic, for example))

Tamara Blake July 22, 2020

Thanks Alex - I'll try it out and let you know if I have any other questions. Thanks for the quick response too!

Tamara Blake July 22, 2020

Thank you Alex! Using the DIV macro and the Hide/Show Container rule worked! Had to play with it a bit on a few of the settings but got it done. This will really make the maintenance of this form so much easier too.

You are the best!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events