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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.