Skip to content

Works with your stack

Cookie consent for SureForms

phone country on load

← Cookie Rocks for your stack

SureForms builds forms with blocks. A phone field set to detect the country asks your site for the visitor’s country as the page loads, before any choice.

By Brainstorm Force · sureforms.com · WordPress.org

Is this your product? Tell us if anything here is out of date. Write to us

What matters for consent with SureForms

Country detection

The field’s script calls your site’s own /wp-json/sureforms/v1/geo-country on page load and keeps the answer in session storage (srfm_geo_country_detected).

Cookie Rocks today

Cookie Rocks classes this key as preferences and erases it until the visitor accepts. The phone field still works: the visitor picks the dialling code.

What our tests found on SureForms

  • A setting to know · SureFormsSureForms looks up the visitor’s country when a phone field loads

    setting “Phone field, auto country” · by default: on

    A phone field finds the visitor’s country on load and keeps it for the session.

    Seen in our tests, 13 November 2026, SureForms 2.14.0.

    Full detail

    On a page with a SureForms phone field set to detect the country, the field’s script calls the site’s own /wp-json/sureforms/v1/geo-country on page load and keeps the answer in session storage (srfm_geo_country_detected), before any choice.

Questions

Does the form still send after a refusal?

Yes. Only the preselected dialling code waits for consent.

What happens after the 30-day trial?

The banner, your visitors’ choices and your proofs of consent keep working. Without a key, most settings lock, updates and support stop. Take a key at any time and everything opens again.

For SureForms sites

Forms that work, consent first.

forms send

Every feature of the complete plugin for 30 days, no card.

  • During the trial: everything, including the full settings and the scans
  • After 30 days without a key: the banner, your visitors’ choices and your proofs of consent keep working
  • What waits for a key: most settings, updates and support

How the trial works, in detail

Cookie Rocks

Get your trial key

Your e-mail and your site. Your key arrives as soon as you confirm your e-mail.

One trial per domain. Local and staging sites never use up your key.

We keep your e-mail address to send your key and help you with it, as explained in our privacy policy. No newsletter, nothing else.