I am using Featherlight to display an HTML form and am not able to do the following:
Load the page with the form hidden initially.
Have the form's "onSubmit" fire when the form is submitted using a standard HTML submit button.
I call the inital lightbox manually as a global variable so I can use the "persist" option:
lightboxForm = $.featherlight('#attendeeAddEditForm', { 'persist' : true });
...but I can't seem to get the "beforeOpen" syntax correct to prevent it from displaying:
beforeOpen: function(event){return false}
...doesn't work inside the above call.
Here is a simplified version of what I am trying to do:
http://jsfiddle.net/djwljr/JNsu6/142/
Any help would be appreciated. Thanks!