Some characters, like those in Greek Alphabet are not shown correctly when we check form submissions, instead artifacts are shown

  • danielsosacaba
    Asked on April 22, 2016 at 3:40 PM
    I need the same validation. Do you have a solution?
  • Mike
    Replied on April 22, 2016 at 3:43 PM

    Are you currently looking for a Greek alphabet or some other validation type? Please confirm the request.

  • danielsosacaba
    Replied on April 23, 2016 at 8:42 AM

    What I need is that people can load their scientific summary and special letters such as alpha, beta, etc. are not changed in the final document. Because it is sensitive information. Then I need to write in English but if you add characters Greeks for example, do not change. Have I explained well?

    Thank you very very much!

  • Chriistian Jotform Support
    Replied on April 23, 2016 at 9:57 AM

    Hi,

    When you say "do not change in the final document", do you mean the submission data should not change when viewed in the submission data page? I created a form and entered Greek characters in the field and submitted. The letters were not changed in the submission data. Please see below.

    Some characters, like those in Greek Alphabet are not shown correctly when we check form submissions, instead artifacts are shown Image 1 Screenshot 20

    If this not what you are referring to, we need more details regarding the following:

    1. What are some of the examples of the scientific formula with special characters that you are expecting users to enter into the fields of your form?

    2. What do you mean by the phrase "final document"?

    3. Are you currently working on a specific form? Please give us the URL.

     

    We will wait for your reply.

  • danielsosacaba
    Replied on April 24, 2016 at 10:04 PM

    Hi. Thanks for your help.
    This is the URL of the form: https://form.jotformz.com/60475599058671

    An example of erroneous sticking summary would be: TNF- and Decreased cAMP response element-binding protein (CREB) and synaptophysin levels found in hippocampal Were extracts from post-septic animals ... We also found phosphorylation of Akt That serine residue at 473 (AktpSer473) and GSK3 phosphorylation of serine at residue 9 (GSK3pSer9) Were Decreased in hippocampi of post-septic animals.

    You see the letters of the Greek alphabet do not appear. However if I copy and paste of text Googleun does accept, for example, α Alpha. A a. Beta β. B b. Gamma γ. Γ between g and j. Delta δ. Δ d. Epsilon ε, ε. E and short. Zeta.

    Some characters, like those in Greek Alphabet are not shown correctly when we check form submissions, instead artifacts are shown Image 1 Screenshot 30

     

    And with "final document" I mean excel or pdf file that can be exported from the back end. Look:

    Some characters, like those in Greek Alphabet are not shown correctly when we check form submissions, instead artifacts are shown Image 2 Screenshot 41

  • beril JotForm UI Developer
    Replied on April 25, 2016 at 4:28 AM

    Thank you for additional information. Currently, we don't have Greek alphabet validation in Jotform. However, one of our users provided his/her solution with us. Please, check the thread below for more information:

    http://www.jotform.com/answers/777475-I-added-Greek-Validation-Characters

    If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.

     

     

  • danielsosacaba
    Replied on April 25, 2016 at 8:21 AM

    Thank you very much for all! I hope it works.
    Best regards!

  • Ben
    Replied on April 25, 2016 at 1:25 PM

    As mentioned on the previous thread, based on what you have described here you do not need Greek alphabet validation.

    All validations are functions that run to check if you are confirming with the rules. That means if your validation is for number, adding characters would raise an error, or if your validation is for Greek letters it would mean that as soon as a character that is not part of the Greek Alphabet is entered, the form would show an error and it would not be possible to submit the same.

    Based on the previous reply with screenshots, it seems that some of the characters submitted are not shown to you correctly.

    The reason why you see these artifacts is because you are not using the same characters on your system as the person that had submitted them.

    Now while that might sound strange, the issue here is that they had some fonts that under the specific font code had the proper character, and on their side it all looks good. On your side, since the same font code is not used, it will show artifact.

    The first screenshot however suggests that the entry itself was with artifacts such as 

    What I would like to ask you is to create a test submission and then share with us the form and the submission ID of the same and that it includes a sample of properly formatted code - where all characters are shown to you.

    Also, do let us know how you are capturing / adding these special characters to the input since different keyboard layouts mean that different codes are used and if you are copy pasting them from somewhere, that would also give us a better idea of what values get added.

  • danielsosacaba
    Replied on April 26, 2016 at 12:45 PM

    Hi! and thanks again.

    Most people will paste the text from your word processor. Right now we are doing several tests and CSS code that I hit seems to be working. My question was what is the right way to stick it? I hit like this:

    1)    greek: 'Αυτό το πεδίο δέχεται μόνο Ελληνικούς χαρακτήρες',

    2)    greek: /^[\u0384-\u03AB\u03AC-\u03CEα-ωΑ-Ω\s]+$/,    //not polytonic

    3)    case "Greek":
                    if (!reg.greek.test(input.value)) {
                        return JotForm.errored(input, JotForm.texts.greek);
                    }
                    break;

  • Nik_C
    Replied on April 26, 2016 at 2:20 PM

    Can you please provide us with a form ID that you will use? And, where did you implement this if loop that you wrote above?

    Thank you!

  • danielsosacaba
    Replied on April 26, 2016 at 2:59 PM

    Form: https://form.jotformz.com/60475599058671

    Site: http://falan-ibrolarc.org/drupal/content/instructions-abstract-submission

  • Ben
    Replied on April 26, 2016 at 4:48 PM

    Please do note that the above:

    1)    greek: 'Αυτό το πεδίο δέχεται μόνο Ελληνικούς χαρακτήρες',

    2)    greek: /^[\u0384-\u03AB\u03AC-\u03CEα-ωΑ-Ω\s]+$/,    //not polytonic

    3)    case "Greek":
                    if (!reg.greek.test(input.value)) {
                        return JotForm.errored(input, JotForm.texts.greek);
                    }
                    break;

    Is actually a javascript code.

    While you could use regex within the CSS, it would be for selectors, so it would not work on your form.

    Now, I understand the issue. This is happening due to the word processors. Basically when you copy a text what happens is that you are not pasting just the text. You are also pasting the codes from within that you did not see.

    To test it out, just come to this thread and copy the text in yellow above. Now paste it into your reply and you will see it with yellow background as well (since the inner codes got copied).

    Just like that, the fonts get copied for granted, so if someone is using Arial as their text in text processing application and someone else using Times New roman, they would be used different codes for same character.

    Then your textarea will accept the codes using the language set on the same.

    To rectify this, if you are using the forms internally it would be best to ask everyone to use the same symbols - from same font in word processor applications.

    Then once you do that, to change your form to match the same font and it should work nicely.

    Hope this helps

  • danielsosacaba
    Replied on April 26, 2016 at 5:42 PM

    @Ben Very clear your explanation. Thank you very much.
    I will make the changes that you say and see what happens.
    Greetings.