Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

If there is an "other" option in my ConfiForm, how can I show what was written in that field?

Christine B
Contributor
December 18, 2024

I have in my ConfiForms several elements. One field (let's call it X) is a dropdown field with the options "A", "B", and "Other". In case "Other" is chosen, there is another field (let's call it Y), that shows up in that case and gives the option to insert another answer.

Later on my page, I want to show the chosen options on a page using [entry.X], but for the case that "Other" was chosen, I want it to not show "Other", but whatever was written in [entry.Y]. 

Is this possible? I'm thankful for any help :)

3 answers

1 vote
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 18, 2024

Hi @Christine B 

Take a look at this video

It demonstrates one of the possible approaches to solve that, by using the "evaluateFormula" virtual function

Hope it helps

Alex

Christine B
Contributor
December 18, 2024

Yes, this was very helpful!

I have one additional question to this. This Form triggers the creation of a page. On this page I want to show this element. For other elements it works to just put "[entry.X]" there. I don't get, what I need to write, if I want this field. I used the "override label name to use for this field" and called it "Element1" but if I put [entry.Element1] on my page, this doesn't work.

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 18, 2024

You will need to use the asEntryRef function from https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions and have something like

id.evaluateFormula(IF(EQUALS("Other", "[entry.id.asEntryRef(entry.X)]"), "[entry.id.asEntryRef(entry.Y)]", "[entry.id.asEntryRef(entry.X)]"))

 

Christine B
Contributor
December 18, 2024

But how can I reference to this Element in my text?

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 18, 2024

Not sure I understand... Are you asking where to put  this?

Have you seen the video? There is a ConfiForms Field I am showing and it's field name parameter...

Christine B
Contributor
December 18, 2024

No, I know where to put it. I think the input works without problems.

I later on in my ConfiForm create a page, where I want to automatically insert this value. [entry.X] works there without problems, but how can I get this virtual-function element in the text of my Confluence page?

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 18, 2024

In your template you put this expression

id.evaluateFormula(IF(EQUALS("Other", "[entry.id.asEntryRef(entry.X)]"), "[entry.id.asEntryRef(entry.Y)]", "[entry.id.asEntryRef(entry.X)]"))

into the field name, which will result into the following expression when the page from this template is created by ConfiForms

id.evaluateFormula(IF(EQUALS("Other", "[entry.X]"), "[entry.Y]", "[entry.X]"))

 

Christine B
Contributor
December 18, 2024

I have put this in the field name, as you said:

Unbenannt2.PNG

And then put the formula on my page (That is created with ConfiForms IFTTT Intergration rules).

This doesn't work, these are the lines shown on my page:
Unbenannt.PNG

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 18, 2024

Not sure what is going on, but may be the video will explain better what I was trying to say...

 

Christine B
Contributor
December 18, 2024

I think it is getting closer. Sorry for the complications!

In my Confi Form:

Unbenannt2.PNG

On my resulting page:

Unbenannt3.PNG

I want to know what I need to put instead of [entry.NAMETEST]

 

 

 

Christine B
Contributor
December 18, 2024

On my Main page i have this:

Unbenannt2.PNG

 

But I'm unsure what to put here instead of [entry.NAMETEST] so that I get the result of the virtual function on my new page:

Unbenannt3.PNG

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 18, 2024

What is  [entry.NAMETEST]?

Christine B
Contributor
December 18, 2024

As shown in my previous picture, NAMETEST is the "Override label name to use for this field" for my virtual function.

 

Christine B
Contributor
December 18, 2024

As shown in my previous picture, it is the "Override label name to use for this field" for the virtual function ConfiForms field element.

Christine B
Contributor
December 18, 2024

As shown in my previous picture, it is the "Override label name to use for this field" for the virtual function ConfiForms field element

Christine B
Contributor
December 18, 2024

As shown in my previous picture, it is the "Override label name to use for this field" for the virtual function ConfiForms field element... is this the wrong approach?

Christine B
Contributor
December 18, 2024 edited

As shown in my previous picture, it is the "Override label name to use for this field" for the virtual function ConfiForms field element.

 

Unbenannt1.PNG

Christine B
Contributor
December 18, 2024

Unbenannt2.PNG

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 22, 2024

Screenshot 2024-12-22 at 23.03.29.png

Christine B
Contributor
March 5, 2025

Until now, I thought that this was my final solution. This works, but now there is a new problem.

By adding "ConfiForms Field" to the newly created page, it automatically puts the ConfiForms ListView over the whole page. But I also have a page properties macro on that page and page properties report does not work, if there is the "ListView" Macro surrounding the page properties.

@Alex Medved _ConfiForms_ Do you maybe have a solution for this?

I already tried to just put the "ListView" macro around the ConfiForms Field myself, but this does not work for me.

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 5, 2025

Why adding a ConfiForms ListView around the ConfiForms Field macro doesn’t work for you?

set it to point at the correct form and page and set the filter (parameter) to be 

id:[entry.id]

 So it will be dynamically evaluated to current record and show the value for the “current record” (the one used to create a page)

Christine B
Contributor
March 11, 2025

This works for me in one case. But my problem is, that I want to put form on different pages in different spaces. To have the right configuration, one would always have to change the page for each space. It is always parent's parent's parent page, which is also the main page of each of those spaces.

Is there some possibility to write something more complex under "page" to not redefine it for each space seperately?

0 votes
Mia Jems
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 20, 2024

To display what was written in the "Other" option of your ConfiForm, use the form's conditional logic or dynamic content features. You can capture and show the custom input by configuring the "Other" field to display its value in confirmation emails or on a thank-you page for users.

Real Estate Jot

0 votes
Christine B
Contributor
December 18, 2024

As shown in my previous picture, it is the "Override label name to use for this field" for the virtual function ConfiForms field element...

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Confluence Events