formfields.com Forum Index formfields.com
FORMfields Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Display a field only if conditions in another field is met

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    formfields.com Forum Index -> FF 2.X - Frequently Asked Questions (FAQs)
View previous topic :: View next topic  
Author Message
simonhelps



Joined: 24 May 2006
Posts: 5

PostPosted: Tue Sep 19, 2006 12:25 pm    Post subject: Display a field only if conditions in another field is met Reply with quote

Hi,
I would appreciate some help. I have a drop down box with selections for Australian states plus an option for "Outside Australia". I would like to have a field below that shows a text box called "Country" that only shows if "Outside Australia" is selected otherwise is not visable. Is this possible? And if so how do I do it?

I would also like to extend this concept if possible so that if a tick box "Delivery address different to Billing address" is ticked the address fields for a delivery address appear otherwise they do not appear.

Many thanks
in advance

Simon
Back to top
View user's profile Send private message
formfields



Joined: 01 Aug 2005
Posts: 465

PostPosted: Mon Oct 02, 2006 9:39 pm    Post subject: Reply with quote

1. Please see http://www.formfields.com/phpBB2/viewtopic.php?t=91&highlight=%2Amatthews%2A for an example of how to create conditional drop down fields.

2. Please see http://www.formfields.com/phpBB2/viewtopic.php?p=985#985 for an example of how to create a form that allows the user to click a checkbox so that they don't have to enter a second address when their mailing address is the same as their billing address.
Back to top
View user's profile Send private message
simonhelps



Joined: 24 May 2006
Posts: 5

PostPosted: Tue Oct 03, 2006 7:55 pm    Post subject: Reply with quote

Thanks for your reply. The examples that you give are not exactly what I am trying to do.
I would like the checkbox to be under the billing country field with text saying "Is the mailing address different to billing address?".
If this box is ticked then a java function then displays the mailing address fields.
If the box is left unticked the mailing address fields are not displayed to the user.

Also in the example you give here:-
Quote:
1. Please see http://www.formfields.com/phpBB2/viewtopic.php?t=91&highlight=%2Amatthews%2A for an example of how to create conditional drop down fields.

fyi -this works except the javascript is not dynamically refreshing. If for example the user ticks the box and then changes their mind and unticks the box - you are unable to enter data into the mailing address fields without refreshing the page first.

Thanks for your help.
Back to top
View user's profile Send private message
formfields



Joined: 01 Aug 2005
Posts: 465

PostPosted: Thu Nov 02, 2006 4:51 pm    Post subject: Reply with quote

Please return to http://www.formfields.com/phpBB2/viewtopic.php?p=985#985 as we have posted a new example for dynamically populating the mailing address.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    formfields.com Forum Index -> FF 2.X - Frequently Asked Questions (FAQs) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group