Greater Than/Less Than

User 2435901 Photo


Registered User
8 posts

I am looking to create a form which the member will pay one price before the date or another after the date

E.G.

Before or on June 16 2013 - Member Pays $100
After or on June 17 2013 - Member Pays $120

Wondering if this can be done within the Web Form Builder. I know how to use the show Element but i need a little help.

Also, just want to say - Great Program!! It has served our organization well.

Thanks

Steve Fulton U.E.
User 2147626 Photo


Ambassador
2,958 posts

Short answer is yes, should be doable...long answer is I think you'd have to use jquery so you might have to wait for Eric to chime in. He's the expert :D
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 38401 Photo


Senior Advisor
10,951 posts

With a little finagling you should be able to do this with a radio button or checkbox asking the question straight out:

Will your visit/purchase/whatever it is they are buying take place before (insert date here)
o YES o NO

Then using a calendar setup to get the actual date they want whatever it is they are buying.

Then using the Show Element conditional settings, set it to do X if they choose Yes and if not No and set it to do Y if they choose No and not Yes and tie this to your pricing setup.

Granted, I have not worked with creating a form with payment options in it yet, so this is all theoretical at the moment and works in my head haha, but I would think something of this order would work. Please let us know if something can be worked out for it and if not too so we know that also.

I need to sit down and work up a form with payment stuff in it just so I see how it all works. Been planning to do that for a couple things, so maybe I'll see if I can find some time this week to do that and see if this situation really will work, but try it anyways just so you can see if it does or not. :)
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

I would go with Jo Anns's suggestion. Simple with no altering.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

I couldn't resist.:lol:
I tested this with a form that had a drop down set to required with two options 100 and 120.
To get this to work all you have to do is know the id's of the two elements you want to work with.
Preview your form and look at the drop down.
My drop down 100 option had an id of item4_1_option
<option id="item4_1_option" value="100">
and the 120 had an id item4_2_option
<option id="item4_2_option" value="120">
Add a html element to your form and paste the code below into it. Adjust the item4_1_option and the item4_2_option to your id's. Adjust the expires date to your needed date. item4_1_option will show before that date and the item4_2_option will show on and after that date. Play with the date to test that the script is working.
<style type="text/css">
<!--
#item4_1_option{
display:none;
}
#item4_2_option{
display:none;
}
-->
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> <script>$(document).ready(function() {
var now = new Date();
var expires = new Date("June 17, 2013");
if(now < expires)
{
$('#item4_1_option').show();
}
if(now > expires)
{
$('#item4_2_option').show();
}
});</script>

Lets all say JQuery is coooolllllll.:cool:
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2147626 Photo


Ambassador
2,958 posts

Eric 'Jquery' Rohloff. Yep, you da man! :lol:
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

You know me Gunsmoke, stick me with a prod and watch the smoke start to rise.:lol:
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2147626 Photo


Ambassador
2,958 posts

I just like the way you can't refuse a challenge. Best way to get something done, tell ya you can't do it! :cool:
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2435901 Photo


Registered User
8 posts

Thanks for your help. I will have a couple more coming at you, but i will start new treads so this stuff is searchable for future users. Using the program to make a registration form but for 7 different types of groups of people.

Crazy fun, thanks again

Steve

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.