Making your form arabic aligned

  • zhmabri
    Asked on January 22, 2019 at 6:45 AM

    I am doing currently an Arabic version of the English for I have created already, however I am finding it difficult to align the text and questions properly as in Arabic writing style is from Right to Left, therefore the question should be on the right and the choices/selection shall be on the left. Is there anyway to do it in Jotforms?

  • Mert Ceylan JotForm Developer
    Replied on January 22, 2019 at 8:01 AM

    To fix the alignment issue with your form you need to do a CSS injection. You can easily do this by following these steps:

    1) Click to your form designer.

    1548161199Screen Shot 2019 01 22 at 15 Screenshot 10

    2) Click on CSS Tab

    1548161294Screen Shot 2019 01 22 at 15 Screenshot 21

    3) Paste this code into the text box:

    .form-all {
    text-align: right;
    direction: rtl !important;
    unicode-bidi: bidi-override !important;
    }

    .form-line-column,
    .form-label-right,
    .form-radio-item {
    float:right;

    } 

    This should make all of your fields align to right, but you need to change the alignment of labels and headers manually to the right.

    Headers:1548161451Screen Shot 2019 01 22 at 15 Screenshot 32

    Labels:

    1548161639Screen Shot 2019 01 22 at 15 Screenshot 43

    If you have any more questions feel free to ask.


  • zhmabri
    Replied on January 22, 2019 at 12:46 PM

    Thank you for your quick reply,

    the questions have been aligned right, however the selection/alternatives still and if you go the mobile view it comes all messed up. Have I missed anything

  • Richie JotForm Support
    Replied on January 22, 2019 at 2:14 PM

    Can you try using this custom CSS code.


    .form-label{
       direction: rtl;
    float: right
    }

    .form-all {
    text-align: right;
    direction: rtl !important;
    unicode-bidi: bidi-override !important;
    }

    @media (max-width: 480px){
     

    .form-label{
       direction: rtl;
    float: right
    }

    .form-all {
    text-align: right;
    direction: rtl !important;
    unicode-bidi: bidi-override !important;
    }

    }

    Please give it a try and let us know how it goes.

  • zhmabri
    Replied on January 23, 2019 at 3:09 AM

    Appreciate your answers, still it is not working.

    I am attaching a picture of how it looks now with CSS Code embedded1548230929Language issue Screenshot 10 and a picture of what I wish it to look like

  • Victoria_K
    Replied on January 23, 2019 at 4:09 AM

    Hello, Please check screencast below:

    1548234368Untitled2 Screenshot 10

    If alignment looks correct, please add this code to your form: 

    .form-all {

    text-align: right;

    direction: rtl !important;

    unicode-bidi: bidi-override !important;

    }

    .form-line-column,

    .form-label-right, .form-label-top, .form-label-left,

    .form-radio-item {

    float:right;

    text-align: right;

    }

    .form-header {

      text-align: right;

    }

    .form-all .form-label-top, 

    .form-all .form-label-left, 

    .form-all .form-label-right {

    float: right;

    text-align: right;

    width:100% !important;

    }

    Let us know if you need more help. 

  • zhmabri
    Replied on January 23, 2019 at 4:53 AM

    Thank you so much, yes it is aligned and it worked perfectly. Thank you Marvin, Richie_P and Victoria_K.