Menu

Using apostrophes in option fields

Help
Anonymous
2004-02-24
2004-02-24
  • Anonymous

    Anonymous - 2004-02-24

    On my survey, I am making statements where the person will choose from answers such as:

    Agree
    Don't Agree

    But when I enter anything with an apostrophe, such as "Don't Agree", it truncates the answer and adds a couple of backslashes.  So on the form1.html page, it gets displayed as "Don\\"  And on the actual results page it will display the answer with four backslashes...i.e. "Don\\\\"

    Are you aware of this bug and is there a fix for it?  Thanks in advance.  This is a great program.

     
    • Musawir Ali

      Musawir Ali - 2004-02-24

      That not a bug, its a side effect rather. As I have mentioned again and again (and again!) "DONT USE SPECIAL CHARACTERS FOR FIELD NAMES". Its right there in the instructions. You are only to use letters, numeric digits,  underscores and whitespaces. All the text decoration needs to be done "after" you generate the form. You can edit form1.html and have it the way you like.

       
    • Anonymous

      Anonymous - 2004-02-24

      sorry for not seeing these instructions(that state no special characters).  where exactly is that? 

      also i realize that no special characters are allowed in the 'Field Name' field and that you have built in error checking to make sure people do not enter special characters.  i didn't realize the same thing applied to 'Option' fields as well, since there was no error checking built into checking the 'Option fields'.  I guess I'll tweak with the code and if I can't figure it out, I'll take your advice and do any text decoration after the form is generated.  thanks.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.