OnSubmit Question
Posted: 02 August 2007 09:10 AM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2007-06-11

Hopefully this is an easy one for someone?

I have downloaded the Freeform module and have a question regarding the ‘onsubmit’ parameter.

1. Do you need to use the syntax

onsubmit="return somefunction('formname');"

with Freeform as you would with the ‘OnSubmit’ extension.

2. Also, does the ‘OnSubmit’ extension add anything to Freeform, or is it just for native EE forms built outside of the Freeform module?

Thanks in advance,

Adam

Profile
 
 
Posted: 02 August 2007 09:19 AM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

The onSubmit extension let’s you add an onsubmit Javascript handler to any EE form. It’s scope is much broader, and not limited to Freeform. The syntax is the same in both cases, calling an external javascript function.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 02 August 2007 10:05 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  2
Joined  2007-06-11

Thanks Ingmar.

Profile