You need to refresh the browser when creating a new form automatically or when you want to edit the URL. Use an HTML block to add the newly created form to any page or post.

Add Anti-spam to the form (Optional)

Add a code block before the "Submit" button.

<form action="" method="POST" class="form-general">
  ...
  <div class="cf-turnstile" data-sitekey="[SITE KEY]" data-callback="javascriptCallback"></div>
  <script src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback" defer></script>
  <button class="my-4 btn" type="submit">Đăng Ký</button>
</form>

Cloudflare Turnstile

<div class="cf-turnstile" data-sitekey="[SITE KEY]" data-callback="javascriptCallback"></div>
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback" defer></script>

Replace your Cloudflare Turnstile [SITE KEY]

Google reCapcha

<div class="g-recaptcha" data-sitekey="[SITE KEY]" data-callback="javascriptCallback"></div>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>

Replace your Cloudflare Turnstile [SITE KEY]


Read article in language vi