How can I change text direction to "Right to Left"

29 views
Skip to first unread message

Mohsen Yaghoubi

unread,
Jul 5, 2019, 3:08:03 PM7/5/19
to fo...@googlegroups.com
Hi all,
How can I change the direction of my questionnaire to "right to left" for Persian or Arabic languages?  I've read in previous comments that I should use "javascript code" to do that. But I am just familiar with HTML codes and I couldn't find a code to put it in JS section in Formr website and solve the problem. I have found some related JS codes but I don't know how can I apply them in Formr.
For example, I have found this code that is suggested for changing the Heading. But I want to change the whole questionnaire text.
<!DOCTYPE html>
<html>
   <body>
      <h1 id="myID">Heading 1</h1>
      <p>Click below to set the direction of heading to Left-to-right</p>
           <script>
         function display() {
            document.getElementById("myID").style.direction = "rtl";
         }
      </script>
   </body>
</html>
Is there any code to put it in JS section and solve the problem with text direction for Persian or Arabic languages?

Thanks,
Mohsen


 

Ruben Arslan

unread,
Jul 11, 2019, 8:02:25 AM7/11/19
to Mohsen Yaghoubi, formr
Hi Mohsen,

I have no experiences with this at all, but can paste the following in 
run -> settings -> CSS and save

* {
    direction: rtl;
}

This would apply left-to-right to all text in your study.

Best,

Ruben

--
You received this message because you are subscribed to the Google Groups "formr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to formr+un...@googlegroups.com.
To post to this group, send email to fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/formr/CA%2ByrHPz9VULu%3DVbUfOL8Kpqw1Q5qVhKC_xkUHyOOZTZNHPURmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages