Background image not updating on a clone version of a form in mobile device

  • lharriman
    Asked on July 1, 2017 at 3:09 PM

    I cloned an old form and changed the background image. But the old image is still stuck to the mobile version of the form. How can I change this?

  • Mike_G JotForm Support
    Replied on July 1, 2017 at 8:04 PM

    The issue is happening because there is a CSS code in your form that changes the background image of the form page when in mobile device and the link in that code still has the old link from the original (2016) version.

    You can locate that code from the Form Designer under CSS tab.

    Background image not updating on a clone version of a form in mobile device Image 1 Screenshot 20

    I suggest you update that code (in the red box) to this:

    .supernova {

            background-image : url("https://www.jotform.com/uploads/lharriman/form_files/back.300.jpg");

            background-size : cover;

            height : 100%;

            overflow : hidden;

    }

    I hope this helps. If you have other questions regarding this, please feel free to contact us again anytime.

  • lharriman
    Replied on June 22, 2019 at 5:35 PM

    Hello. This trick worked last year, but now when I try to do it again, it isn't working. The mobile version still has the wrong background image. Here is the link to my current form:


    https://form.jotform.com/91726932769169https://form.jotform.com/91726932769169https://form.jotform.com/91726932769169

  • Mike_G JotForm Support
    Replied on June 22, 2019 at 8:24 PM

    It appears that you have updated the page background here (please see image below).

    1561249207zt20 19 17 Screenshot 10

    However, the link to the background image in the custom CSS codes injected in your form has still the link to the old image.

    1561249321zt20 21 26 Screenshot 21

    Please try updating the codes to this:

    @media screen and (max-width: 480px){

      .supernova {

            background-image: url("https://www.jotform.com/uploads/lharriman/form_files/website-background.657.jpg");

            background-size: cover;

            height: 100%;

            overflow: hidden;

    }

    Feel free to contact us again anytime should you have other questions or concerns.