Are you using the "gform_submit_button" filter to manipulate the button?
The reason I ask is because the button markup is incomplete. The script is looking for an ID on the button element that's not there.
<script type='text/javascript'>
jQuery(document).ready(function(){
gf_apply_rules(1, [7]);
jQuery('#gform_wrapper_1').show();
//preventing 'Enter' key from submitting the form when submit button is hidden
jQuery('#gform_1').submit(
function(){
return jQuery('#gform_submit_button_1').is(':visible');
}
);
});
if(!window['gf_form_conditional_logic'])
window['gf_form_conditional_logic'] = new Array();
window['gf_form_conditional_logic'][1] = {'logic' : {7: {"field":{"actionType":"show","logicType":"all","rules":[{"fieldId":"4","operator":"is","value":"Friend"}]},"section":null}}, 'dependents' : {7: [7]}};</script>
Normal button markup looks like this..
<input type="submit" tabindex="4" value="Submit" class="button" id="gform_submit_button_2">
but yours looks like this.
<input type='submit' value='' />
No ID on the button element means the script doesn't know what to do with it. Fix that and you should be good to go.
Posted 14 years ago on Thursday August 12, 2010 |
Permalink