• Resolved maximbelenkii

    (@maximbelenkii)


    Hi! Thanks for the plugin. There is a problem with a field like: “hidden”
    The field is not so hidden, the values are visible in the HTML tree. As far as I remember, in the old version, the hidden fields were not visible in the HTML element tree
    How can this problem be solved? How do I really hide these fields from the HTML element tree? Example:

    <input type="hidden" name="bpro-get-balance-info" size="40" class="wpcf7-form-control wpcf7-hidden wpcf7dtx wpcf7dtx-hidden" aria-invalid="false" value="8000" autocomplete="off" wfd-invisible="true">
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter maximbelenkii

    (@maximbelenkii)

    I found a slightly different way to work around this problem.

    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    Hi, thank you for your patience! I was out of town all week.

    In order for data to be submitted by the user, it needs to be in the DOM or HTML element tree. If the data needs to be automatically generated on page load and then submitted with the user’s submission, it will be visible on the client-side as it’s submitted to the server-side.

    One method I prefer to use if you need to keep data from being revealed on the client-side is to use the wpcf7_before_send_mail hook. You can use data in the $submission or $contact_form variables to evaluate if-else statements, run dynamic codes, and then modify the content of the email before it sends.

    In essence, what you’re asking is for an automatic post-fill rather than an automatic pre-fill.

    It would be an interesting feature to add, something like a checkbox of “hide from frontend” so it submits an empty value so the user never sees it but then calculates the dynamic value after submission.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The value of hidden fields is visible in HTML’ is closed to new replies.