Display of Turnstile Widget in a Form

I have asked this question before but never got an answer.

Is there any way of controlling where the Turnstile widget is display on a contact form. Mine is currently only displayed when the user hits the submit button, and then it is displayed in the top lefhand corner of the form.

I have looked at their setup code and it seems a little complicated to do it myself as I assume there is some aspect of the token verification that you are already handling.

I’d like to have the widget displayed permanently so people know it is going to handle the verification.

Hmm, I haven’t used Turnstile myself; it will be one for @ben to take a look at…

1 Like

Currently the form attempts to do an “invisible” turnstile check. If that doesn’t pass then cloud flare automatically add a Turnstile widget in to the form. At the moment you cannot control the placement of the widget.

I will ticket this and get a fix in an upcoming beta — can’t promise when as I am going to have to rethink how we integrate with both Turnstile for this one to work.

@ben Thanks for taking a look at this, it would be nice to be able to have a little control over the widget. I see they do have code for embedding the widget into a form, but it looked like it had a lot of stuff that needed to be coordinated with the server.

Most sites where i have seen Turnstile used the widget is always visible and is only active when submitting a form. This makes for a much better looking form. I can live with the widget popping up on the form when needed, if I could tell it where to appear.