Hello,
Using Elgg 2.3.14 and having some issues with lightbox. I would like my submit button to open a lightbox with a message and upon closing the the box continue submitting the form. Currently when the lightbox displays I'm getting an empty box with the 'close' button, and when I close the form is not submitted. Actually it would be better if the form is submitted and then the lightbox opens immediately after. .Here is my code in my blog form:
$save_button = elgg_view('input/submit', array(
'value' => elgg_echo('save'),
'name' => 'save',
//'rel' => 'popup',
'href' => "#sign-notify",
'class' => 'elgg-lightbox-inline mll',
));
echo elgg_format_element('div', [
'class' => 'hidden theme-sandbox-content-thin elgg-module-popup',
'id' => 'sign-notify',
],
'A notification has been sent to your mobile device for signature.');
Not sure what I'm doing wrong here.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- TCB@tblack06

TCB - 0 likes
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
You must log in to post replies.Use link instead of button - just add elgg-button class for url output
Thanks.. that allows me to see the text in the lightbox. Appreciate the help.. now I need to figure out how to still get the form to submit.
Learn lightbox
Learn Ajax
Find out more and more