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

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

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
AUG Leaders

Atlassian Community Events