Forums

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

Show/Hide the confiform based on radio button selected

deepak kalsi July 2, 2020

I want to show and hide the Confiform based on some question from the user.

Suppose if 3 radio buttons and if all of them is "YES: then show the form otherwise do not show the form to user.

What I have:

I have a confiform on confluence page which creates issue in JIRA

I have setup the 3 question radio options(YES/NO)

 

What is required:

Show the confiform if all radio button is YES

Do not show the form even if one radio button is NO

 

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
July 3, 2020

How is your radio button selector is built? Is it also a ConfiForms form?

deepak kalsi July 3, 2020

@Alex Medved _ConfiForms_ 

Radio button selector are in built using macro in confluence

Alex Medved _ConfiForms_
Community Champion
July 3, 2020

You can hide the the contents registered by ConfiForms FormView (Registrations Control macro) via JavaScript

AJS.$('span[data-macro-name="confiform-entry-register"]').hide()

How to call it from your custom macro I cannot tell, as I dont know from your answers what exactly you are using to build it 

deepak kalsi July 3, 2020

@Alex Medved _ConfiForms_  I am using confiform filed definition macro to build radio butons

Alex Medved _ConfiForms_
Community Champion
July 4, 2020

OK, A bit better now.. but still puzzled - do you have 2 ConfiForms Forms? 

Are you looking to setup one form so that it shows/hides another form? Is that your question?

deepak kalsi July 4, 2020

@Alex Medved _ConfiForms_ 

I want to acheive something like this:

Radiobutton1 Yes No

Radiobutton2 Yes No

Radiobutton3 Yes No

 

"Hello message"( this will be displayed when any of the radiobutton is Yes)

Confiform to submit JiRa issue(This will be displayed when all radio buttons are No)

 

 

It doesn't not matter to me whether i use two or one form. You can tell me the idea.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events