(I create this topic to continue the discussion of this topic which auto-locks when I try to post an answer.)
I couldn't make it work with Max's code, but using JavaScript was the right way. After lots and lots of attempts, I found this topic (second post) that helped me (also with the updated version of the FAQ indicated by GreyHead) to find the solution to show the content of a field while loading. Here is something that works :
But now remains the problem of the lightbox. I would like to show this content in a lightbox... The FAQ is about creating a link that opens a lightbox, but my problem is how to open this lightbox directly from the Javascript code above ? Do you have an idea ?
Thank you for your help so far 🙂
I couldn't make it work with Max's code, but using JavaScript was the right way. After lots and lots of attempts, I found this topic (second post) that helped me (also with the updated version of the FAQ indicated by GreyHead) to find the solution to show the content of a field while loading. Here is something that works :
function showLoader() {
var content;
jQuery(document).ready(function(jQ) {
content = jQ('#field_id').val();
});
jQuery('#loading').html(content);
jQuery('#loading').show();
jQuery('#submit_btn').prop('disabled', true);
jQuery('#chronoform-my_form_name div:not(:last-child)').hide();
}
But now remains the problem of the lightbox. I would like to show this content in a lightbox... The FAQ is about creating a link that opens a lightbox, but my problem is how to open this lightbox directly from the Javascript code above ? Do you have an idea ?
Thank you for your help so far 🙂