Image Choices Widget: Align images in one row

  • Perlman
    Asked on October 16, 2017 at 1:49 AM

    Hello, is it possible to align images in one row when using the image choices widget?


    Thank you,

    Spencer

    Jotform Thread 1273950 Screenshot
  • Nik_C
    Replied on October 16, 2017 at 4:58 AM

    You can fix that by increasing the width of the Image widget:

    1508144290screencast Screenshot 10

    Hope it helps.

    Let us know if you have any further questions.

    Thank you!

  • Perlman
    Replied on October 16, 2017 at 9:48 AM

    Thank you, that helped.

    Do you know if I can eliminate a question in the same widget? It seems like a question is required or the formatting gets messed up.

    Thank you,

    Spencer

  • Perlman
    Replied on October 16, 2017 at 10:01 AM

    Sorry, one more related question about the widget. Can the images be forced into one vertical column to improve the layout on a smaller mobile device?

  • Kevin Support Team Lead
    Replied on October 16, 2017 at 11:59 AM

    Do you know if I can eliminate a question in the same widget? It seems like a question is required or the formatting gets messed up.

    I'm not sure if I understood correctly your question, but you can remove fields by clicking on it and the trash button: 

    Image Choices Widget: Align images in one row Image 10

    To display the widget options vertically, please inject this code to the widget: 

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

      .options li{

          width: 100%;

      }


      .options li img{

          width: 80%;

      }

    }

    Guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes 

    I hope this helps. 

  • Perlman
    Replied on October 16, 2017 at 1:26 PM

    Thank you.

    I would like to set up the widget so it is not necessary to have a text question at the top. (I want to eliminate this question" is currently the question text in place. It seems like having a question is required or the layout of the icons is negatively effected.

    1508174542Widget Screen Shot1 Screenshot 10

    1508174572Widget Screen Shot2 Screenshot 21

    When question text is removed from widget settings, this happens:

    1508174656Widget Screen Shot3 Screenshot 32

  • Kevin Support Team Lead
    Replied on October 16, 2017 at 1:39 PM

    Seems like the question text is required, but the text can be hidden with custom CSS code, please inject this one: 

    h1{

    display:  none;

    }

    The code needs to be injected to the widget so this guide will help you doing so: https://www.jotform.com/help/428-How-to-Inject-CSS-Codes-to-Widgets 

    I hope this helps. 

  • Perlman
    Replied on October 16, 2017 at 2:30 PM

    Perfect.  Thank you.

    Do you know if there is css available to adjust the appearance after a selection is made?

    Currently, after a selection is made, this is how it looks:

    1508178081Widget Screen Shot5 Screenshot 10

    Can the word "Cremation" be centered below the image?

    Can the back button also be centered and perhaps the text "back" changed to something else like "Back to Options"?


    Thank you,

    Spencer

  • Kevin Support Team Lead
    Replied on October 16, 2017 at 2:47 PM

    Please allow me some time to work on the needed CSS code, I will get back to you as soon as possible. 

  • Kevin Support Team Lead
    Replied on October 16, 2017 at 3:06 PM

    Please inject this code to your widget in order to center the text and button: 

    b {

      text-align: center;

      width: 120px !important;

      position: absolute;

    }


    .prevOption {

        margin-left: 6% !important;

        margin-top: -10px;

    }

    Guide: https://www.jotform.com/help/428-How-to-Inject-CSS-Codes-to-Widgets 

    Regarding to change the back button, it's not possible to do so, I have been testing with some CSS code and I unable to change the text. We  could open a feature request for this if you want, please  let us know. 

  • Perlman
    Replied on October 16, 2017 at 3:16 PM

    Thank you. This worked well.

    I think it would be a useful feature to be able to adjust the back button text.

    I appreciate all of your help.

  • Nik_C
    Replied on October 16, 2017 at 3:41 PM

    I will forward this to our backend team for a possible implementation. We can not guarantee that it will be implemented, but you will be informed through this thread once/if the option is implemented.

    Thank you for suggesting it.

    Cheers!

  • Perlman
    Replied on October 16, 2017 at 4:21 PM

    Thank you.

    I ran into another question.

    Is it possible to increase the height of the widget? Some of my text is getting cut off.

    1508185295Widget Screen Shot6 Screenshot 10


  • Mike
    Replied on October 16, 2017 at 5:21 PM

    Have you fixed this or is this still happening at some place?

    Image Choices Widget: Align images in one row Image 1 Screenshot 20

  • Perlman
    Replied on October 16, 2017 at 6:16 PM

     Not yet.  I am still showing the 3rd line cutting off.

    1508192169Widget Screen Shot7 Screenshot 10

  • John_Benson
    Replied on October 16, 2017 at 10:27 PM

    Hi,

    To fix the issue, please add this custom CSS code to your form: 

    iframe#customFieldFrame_532 {

        height: 200px !important;

    }

    Here's a guide on: How-to-Inject-Custom-CSS-Codes

    Here's the result of my test form:

    1508207159iframs Screenshot 10

    I hope this helps. 

  • Perlman
    Replied on October 16, 2017 at 11:09 PM

    Thank you. That worked. The only problem now is after the a image is selected, the text and back button overlap.

    1508209721Screen Shot 2017 10 16 at 8 Screenshot 10

  • Kevin Support Team Lead
    Replied on October 17, 2017 at 12:23 AM

    I would recommend you to increase the iFrame's height and also change a bit the code that affects the back button, please inject this one to the widget: 

    .prevOption {

        margin-left: 6% !important;

        margin-top: 15px;

    }

    The code that affects the iFrame should be found injected on the form's CSS code. 

    I hope this helps. 

  • Perlman
    Replied on October 17, 2017 at 12:50 AM

    Thank you.  I added the css code to the widget and increased the iframe height in the code mentioned above by John.

    This is the result.

    Unselected:

    1508215769Screen Shot 2017 10 16 at 9 Screenshot 10

    And image selected:

    1508215793Screen Shot 2017 10 16 at 9 Screenshot 21




    So, unfortunately there is still an overlap.

  • Nik_C
    Replied on October 17, 2017 at 2:12 AM

    To fix that, please insert the below CSS to Custom CSS Field:

    iframe#customFieldFrame_532 {

        height: 240px!important;

    }

    And the below CSS to CSS field of the widget:

    1508220327Screen Shot 2017 10 17 at 8 Screenshot 10

    The marked margin should be inserted instead of the current -10px.

    That should fix the problem:

    1508220714Screen Shot 2017 10 17 at 8 Screenshot 21

    Let us know how it worked.

    Thank you!


  • Perlman
    Replied on October 17, 2017 at 10:43 AM

     Thanks Nik,

    That worked.

    I noticed another issue that I hope to get help with regarding the same widget.

    When viewing the form on a small mobile phone in Portrait orientation, the widget is getting cut off below the second image.

    Please see attached photo:

    1508251399Screen Shot 2017 10 17 at 7 Screenshot 10

    Thank you,

    Spencer

  • Kevin Support Team Lead
    Replied on October 17, 2017 at 12:02 PM

    That should be fixed with this code:

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

      iframe#customFieldFrame_532 {

          height: 513px !important;

      }

    }

    It needs to be injected to the form's CSS code.

    I hope this helps. 

  • Perlman
    Replied on October 17, 2017 at 12:40 PM

    Thanks Kevin,

    After entering the code, I didn't see any changes on the mobile phone simulator within the Jotform preview tool, however I did test on my personal phone and it looks good there.

    Again, thank you for your help.

    Spencer

    1508258417Capture10 16 1 Screenshot 10