div.ctf-widget. For a plain iframe, give the same settings as query parameters on https://www.checkthatfield.com/embed/fields, without the data- prefix.
Your publishable key,
ctf_pk_live_…. It works only on the sites it was issued for. Without it, or with a secret key (ctf_sk_live_…), the widget says “This widget isn’t set up for this site”.A postcode in England, such as
HP18 9TH. Spacing and case don’t matter. The widget looks at the fields nearest the postcode’s centre. When you give a postcode, data-lat and data-lng are ignored.Latitude in decimal degrees (WGS84), such as
51.7512. Give it with data-lng, for when you know the property’s exact position. It must be between 49 and 61.Longitude in decimal degrees (WGS84), such as
-1.0731. Give it with data-lat. It must be between −10 and 3.auto, light or dark. auto follows the reader’s light or dark setting. Choose light or dark to match your page whatever the reader’s setting. Anything else is treated as auto.Examples
What you can’t change
The widget always looks at the 5 nearest open fields within 500 m of the place you give, and always shows the data credits. Its size follows its content when you use the loader; it fills the width of its container. If you need a different radius, more fields or your own design, use the Partner API, which takesradius_m and limit.