- MarkgoessensAsked on January 12, 2012 at 08:22 AM
I'm strugling with the conditions.
I have some radiobuttons:
Deelnemertype : Student / NGi-lid / Niet NGi-lid
If the user chooses 'Student' then show 'prijs € 21 excl. en €25 incl. btw'
If the user chooses 'NGi-Lid' then show 'prijs € 75 excl. en € 89,25 incl. btw'
and so on...
BUT I also have a textfield named 'sponsorcode'
When this textfield contains the word 'gratis' then show 'prijs € 0'
The problem is: when a user chooses 'Student' AND fills in 'gratis' in the textfield, both prices show up.
But actually only € 0 has to show up. Because this one overrules all the other prices.
So I tried to add conditions like:
- When this textfield contains the word 'gratis' then show 'prijs € 0'
- When this textfield contains the word 'gratis' then hide 'prijs € 21 excl. en €25 incl. btw'
- When this textfield contains the word 'gratis' then hide 'prijs € 75 excl. en € 89,25 incl. btw'
and so on...
But then all the prices are shown at the same time at the beginning.
I don't know what I'm doing wrong.
Can you please tell me what I'm doing wrong?
- JotForm SupportNeilVicenteAnswered on January 12, 2012 at 09:15 AM
To prevent "prijs € 21 excl. en €25 incl. btw" from showing up when "Student" is selected and "gratis" is entered in the Sponsorcode, your condition should be like this:
This way, when "Student" is selected and "gratis" is entered, only the "prijs € 0" text will be displayed.
To add the second condition, just click the Add New Rule button.
Hope this helps.
- MarkgoessensAnswered on January 12, 2012 at 10:31 AM
Thanks for your answer. I did what you said, but not all of my conditions work.
I can't find a logical solution why that doesn't work. Because I did the same with the other.
It does work with 'deelnemerstype = Niet Ngi Lid' and sponsorcode contains 'gratis'
It doesn't work with 'deelnemerstype = Ngi Lid' and sponsorcode contains 'gratis'
It doesn't work with 'deelnemerstype = Student' and sponsorcode contains 'gratis'
Because then he shows no price at all.
Can you see what I'm doing wrong? Because I did the same with 'Niet NGi Lid' as the rest.
- fxrAnswered on January 12, 2012 at 12:21 PM
Is the 'prijs = 0' field always shown if sponsorcode = 'gratis' ?
If so, seems the easiest way of remedying this is to just remove the 3 condtions you have setup around that field and replace them with one that looks like this:
Do you understand what I am suggesting there? Is it a satisfactory solution?
My cloned form with these changes made is shown here: http://form.jotform.com/form/20110735117
- MarkgoessensAnswered on January 13, 2012 at 03:59 AM
Thanks a lot for your reply. This answer solved my problem.
I'm very happy with that.
- MarkgoessensAnswered on January 13, 2012 at 04:23 AM
Oh, actually my problem isn't solved yet.
At the end I added some extra textfields (which I made hidden with the injected CSS)
These extra textfields contain the same information and condition as the other price fields.
Now, he shows two prices. € 0 and € 21 (for example)
The reason that I added these extra textfields (hidden for the user) is that the HTML fields won't show up in the notification mails. These extra textfields are only created for showing up in the notification mails. They show the right price.
I think the problem is because I made different conditions with the same fields.
Actually I want to fill in more 'then' in a condition:
If 'deelnemersgroep' is equal to 'student'
then show 'price A_html field'
then show 'price A_hidden field'
How can I solve this?
- MarkgoessensAnswered on January 13, 2012 at 04:57 AM
There I am again.
I, myself, was the problem regarding to my last message.
I made a mistake in the form which causes the problem.
Now it's solved.