• Resolved jsalainfordisa

    (@jsalainfordisa)


    If I use the TranslatePress plugin, the condition doesn’t work when displaying the form in the translated language. Can it be made to work with the premium plugin?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support himanshusharma20

    (@himanshusharma20)

    Hi @jsalainfordisa,

    Thank you for using our plugin. From your use case, we think you are adding field labels inside the condition, so after translation the field labels get translated. For example, if you have a radio field with “Option 1” and “Option 2”, after translation they might be translated into other strings.

    So we suggest adding conditions based on the field values, not the field labels. For example: Option 1|opt-1. You can use the | (pipe) operator to add a label and value for that field. After that, you can use the value of that field in the comparison.

    Thank you.

    Thread Starter jsalainfordisa

    (@jsalainfordisa)

    Hi @himanshusharma20,
    I’m using number fields for the conditional, not radio buttons.

    If you look at a test on our website:

    https://ots.infordisa.com/#9cdcee16-d49d-44d6-b6a8-cf682a025032%7CGL0oSBKsAMZTTscffEnD

    try putting a number in the last field of “Telèfon mòbil *”, you’ll see that another line is added.

    If the website is viewed in Spanish (ES), the condition doesn’t work. Is there a solution?

    Regards

    Plugin Support himanshusharma20

    (@himanshusharma20)

    Hi @jsalainfordisa,

    Thank you for the response. I have translated the site with TranslatePress too, and I am not facing any issues with the conditions. I also checked your shared URL, and I can see it is translating the internal JSON data used by the plugin for the conditional logic that is under the .cfef_logic_data_js class holder template tag. That’s why your conditions are not working on your site. To resolve this, could you please clarify how you translate your site using TranslatePress? I have translated using the translation editor. Also, you can follow the docs from TranslatePress official to exclude that particular HTML element from being translated. You can add this .cfef_logic_data_js class selector to the input box, save settings, and retranslate that page again, then check if it is working or not.

    Thank you.

    Thread Starter jsalainfordisa

    (@jsalainfordisa)

    Thank you very much @himanshusharma20 ,
    excluding .cfef_logic_data_js it works fine now
    Regards

    Plugin Support himanshusharma20

    (@himanshusharma20)

    Hi @jsalainfordisa,

    You’re welcome! I’m glad to hear that it’s working fine for you now. I would really appreciate it if you could leave a five-star rating for our Conditional Fields for Elementor plugin if you found it helpful. Also, this ticket has a resolved status. If you need further assistance regarding the plugin, you can create a new ticket; we are here to help.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.