• Resolved SOWHOYOUdotCOM

    (@sowhoyou)


    Hey there,

    So I’ve noticed that when a user translates the page of my site to a different language, that also translates the data that’s being sent from the Smart Form.

    So I guess the form, it’s not so smart after all lol, j/k.
    But seriously, is there any way to prevent this from happening?

    Example:

    I have a field that has a Multiple Radio Option, The options are in English.
    However I have clients that translate the page to their native language.
    When they do that, the data that is sent from the form in the url is also translated.

    This causes issues on the other end where the form is posting data to, as it expects English values, though in some cases when the pages is translated, it breaks things.

    Any possible solution to such issues would be greatly appreciated. As I’m not sure what I could do here, outside of somehow detecting the language change and trying to translate it back to English, which I have no clue where I would start with doing that.

    Best Regards ~

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter SOWHOYOUdotCOM

    (@sowhoyou)

    I just wanted to add… I did patch in a workaround for the project that this issue was effecting, although I would love to see something added into this plugin to prevent these types of issues from happening.

    For reference what I did to resolve this issue…

    I manually translated the options to the top 10 most used languages and added them into an array on the post end point, then searched the array to see if a value matches. This however will only work for this one simple project that I’m having this issue with.

    Though if I were to use the Smart Form plugin for other projects, then this could become a much more difficult problem to fix. As the variable names are not translated when the form is submitted, but the values for those form options are. Which seems like it could be prevented in the core code of the plugin, maybe it was an overlook during it’s creation. Either way, still a great plugin, thanks for taking the time to read this, if you read this lol.

    Best Regards ~

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    Thanks for sharing your solution, translation support is in the request list =). It is a kind complex feature to add as there are many ways the site could be translated and the plugin would need to be compatible with those.

    Regards!

    Thread Starter SOWHOYOUdotCOM

    (@sowhoyou)

    Glad to hear that’s something on the list, even though it may not come anytime soon. Regardless, thanks for the reply back! I only wish more developers would at least acknowledge peoples comments that are made as you did, doing so shows that you care. Thanks again for a great and very useful plugin. I hope you have a great day/week/month/year!

    Best Regards ~

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page Translations interfering with Form Post Data’ is closed to new replies.