Forums

Textbox required if another textbox is filled

undergreat 06 Apr, 2011
Who can help? I need some changes in my form:

I have a dropdown menu. When choosing option 3, a new textbox (textbox 2) is occuring. Textbox 2 is required - but only when option 3 is chosen from dropdown. That is what need to be programmed.
Version used: 3.1 RC5.5
Please help! It is urgent.

Greetings,
Mathias

ps: email to: [email]mathias.rhode@gmail.com[/email]
GreyHead 06 Apr, 2011
Hi Mathias,

The "Creating Hideable Sections" document you just bought should tell you how to handle this OK.

Bob
undergreat 07 Apr, 2011
Hey Bob,

thank you very much. It helped. There is just one question left.

When sending the form I get ja javacript popup with "errors have been found".

I searched - but where can I change the text?

I am looking forward to get help.

Greetings,
Mathias
GreyHead 08 Apr, 2011
Hi mathias,

It's in includes/js/validation.js around line 119
	if (!validForm) {
		alert("Errors have been found");
		location.hash = '#startOfForm';
	}

Bob
This topic is locked and no more replies can be posted.