How to inject CSS into 'thank you' lightbox.

  • Profile Image
    adamdurbridge
    Asked on February 15, 2012 at 05:54 PM

    After submission of a form, the custom 'thank you' message appears in the lightbox window, but with the addition of what looks like two <body> 8px margins. (See screenshot)

    How can I inject css into 'thank you' message so that my own background image fills lightbox??

  • Profile Image
    idarktech
    Answered on February 15, 2012 at 09:45 PM

    Hi,

    I believe css injection for thank you message isn't possible. It also doesn't work inside thank you message as the feature is already deprecated. Since it causes server issue, we don't allow importing/declaring css and other javascript codes.

    e.g.

    <style type="text/css"> and <script type="text/javascript">

    You can only declare styles on your div tags but not separately.

    I hope this clarifies the issue. Should you have any other questions or concerns, please let us know. Thank you for using JotForm!

  • Profile Image
    adamdurbridge
    Answered on February 16, 2012 at 05:40 AM

    Thanks. Much as I had suspected.. You'll have noticed I'd already declare a style in the main div, but this is less than ideal.

    CSS injection for thank you message, as with the forms themselves, would be great..

    Thanks again for your response!

    Adam 

  • Profile Image
    dsdf 
    Answered on December 11, 2014 at 08:23 AM

    sdsf