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 :)
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)]"))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But how can I reference to this Element in my text?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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]"))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have put this in the field name, as you said:
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure what is going on, but may be the video will explain better what I was trying to say...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it is getting closer. Sorry for the complications!
In my Confi Form:
On my resulting page:
I want to know what I need to put instead of [entry.NAMETEST]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On my Main page i have this:
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is [entry.NAMETEST]?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As shown in my previous picture, NAMETEST is the "Override label name to use for this field" for my virtual function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As shown in my previous picture, it is the "Override label name to use for this field" for the virtual function ConfiForms field element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As shown in my previous picture, it is the "Override label name to use for this field" for the virtual function ConfiForms field element
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As shown in my previous picture, it is the "Override label name to use for this field" for the virtual function ConfiForms field element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As shown in my previous picture, it is the "Override label name to use for this field" for the virtual function ConfiForms field element...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.