Adattare widget alle dimensioni del modulo

  • FondazioneArena
    Domanda del 7 febbraio 2024 alle ore 04:15

    Buongiorno,

    chiedo se sia possibile in qualche modo adattare alle dimensioni del modulo le opzioni dell'elemento base 'Scelta Singola'. Allego screenshot di quello che intendo.

    Mi piacerebbe che le possibili risposte fossero adattate al modulo in tutta la sua larghezza e che le frasi non risultassero spezzate dopo così poche parole.

    Grazie,

    Samanta

    Jotform Thread 11603513 Screenshot
  • Lorenz Jotform Support
    Risposta del 7 febbraio 2024 alle ore 06:49

    Hi Samanta,

    Thanks for reaching out to Jotform Support. Unfortunately, our Italian Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Italian, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again. 

    With that said, we can use Custom CSS code to adjust the single-choice element's width. Let me walk you through it:

    1. In the Form builder, click on the blue Roller Paint icon.

    2. From the Form Designer panel, select the Styles Tab. 

    3. Next, scroll down a bit and add the code below inside the Inject Custom CSS area. 

    /* Fix single-choice element width */
    [data-type="control_radio"] .form-input, [data-type="control_checkbox"] .form-input, [data-type="control_radio"] .form-input-wide, [data-type="control_checkbox"] .form-input-wide {
        max-width: 100% !important;
    }
    .form-radio-item, .form-checkbox-item{
        max-width: 100% !important;
    }

    Adattare widget alle dimensioni del modulo Image 1 Screenshot 20

    Give it a try and let us know if there's anything else we can help you with.