Sending an OTP while filling out the form

Hi guys,
I have a form that retrieves data from the wp database while the user is filling it out (I’m using Gravity Wiz).
After the user types his/her email and select a campaign, he has to provide a code in order to submit the form successfully and download a file.
I preload the key on a hidden field and have a conditional logic to show the submit button only when the typed key matches the hidden value. All works fine!
My problem: I tried to create a HTML field to show when there is a mismatch or the key value is still empty to allow the user to request the key via email.
I first tried inputing an PHP code inside:

Obviously it was not working. I found later that it’s not possible to encapsulate PHP into HTML fields.
Anyone know any alternative around this?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.