Forum OpenACS Development: Re: Using ad_form with manual edit/submit buttons

Collapse
Posted by Gaven Eogan on
thanks for reply. Yes that's what we tried first to do (but didn't work for some reason) so we went for temporary hack solution of using ajax calls to modify the bootstrap classes on the buttons for now.

#jQuery - only way to change classes for now
set jquery_script [subst -nocommands {
jQuery(document).ready(function() {
jQuery("[name='formbutton\\\\:info']").removeClass();
jQuery("[name='formbutton\\\\:info']").addClass('btn btn-default');
jQuery("[name='formbutton\\\\:continue']").removeClass('btn-block');
});
}]

I will get back to this soon and try it again when I get a chance and let you know the final solution.