Forums
>
Product Discussion - DotNetNuke Modules
>
Dynamic Forms
Hide field when date in date field is before a specific date
Last Post 10-21-2011 07:32 AM by Candace. 3 Replies.
Author
Messages
Bert
skipping stones
Posts:14
10-20-2011 06:47 AM
Hi,
I want a field become visible when the date in a date field is after a specific date, eg 07-01-1955, and hide when the date is before that specific date. What would be the best way to do that?
Thanks for your tme,
Bert
Candace
river guide
Posts:2431
10-20-2011 08:19 AM
Hi Bert,
Typically, we hide/display fields based on a specific user response using Question Events. However, because the date range condition, I think it's best that you create a hidden field first. Let's call that DisplayFields. So what you'll do is add a client side event on your date field so that if date is > 07-01-1955, then $(DisplayFields) = True; else $(DisplayFields) = False. (you'll have to clean up that javascript)
Then, in your Question Event, use the True value to display initially hidden fields.
Be sure that the javascript is also in Module Configuration, Initial Javascript.
Hope that helps!
Candace
Bert
skipping stones
Posts:14
10-21-2011 04:06 AM
Hi Candace, thanks for your reply.
I have been trying to add the javascript to the initial Javascript and in the client side event.
I have some jquery script in there for the pop up calendar. This breaks down every time I put in some code there. I'm doing something wrong, but don't know what.
If it is not to much trouble, can you give me the script like I have to put it in the client side event and in the initial javascript? That would help me very much understanding what I'm doing wrong.
Thank you for your support!
Candace
river guide
Posts:2431
10-21-2011 07:32 AM
Hi Bert,
I don't have the actual script to give you but if you want us to set it up for you, we can do this with Premium Support. Please use the Contact Us form and reference this forum thread when requesting an estimate.
www.datasprings.com/premiumsupport
www.datasprings.com/contactus
Thanks!
Candace
Forums
>
Product Discussion - DotNetNuke Modules
>
Dynamic Forms
film izle
720 izle
film
sinema izle
film makinesi
T�rk�e dublaj film
film izle
film izle
baglan film izle
sinema izle
1080 film izle
film mercegi