# ivyforms/1.0/frontend/src/constants/securityFields.ts

The Innovative Form Builder – IvyForms, version 1.0. 27 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/1.0/code/frontend/src/constants/securityFields.ts
- Raw: https://pluginprobe.com/plugins/ivyforms/1.0/raw/frontend/src/constants/securityFields.ts
- Modified: 2026-05-06T08:31:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ivyforms/1.0/code/frontend/src/constants/securityFields.ts#L10-L20`.

```typescript
/**
 * Field Constants
 *
 * Shared field type constants used across the application.
 * Centralised here so the list is defined once and imported wherever needed
 * (form builder, integrations, entry manager, etc.).
 */

/**
 * Field types that are used for bot/spam protection.
 * These fields should be excluded from stored entries, integration payloads,
 * placeholder lists, and any other processing that targets user-submitted data.
 */
export const SECURITY_FIELD_TYPES = ['recaptcha', 'turnstile', 'hcaptcha'] as const

export type SecurityFieldType = (typeof SECURITY_FIELD_TYPES)[number]

/**
 * Returns true when the given field type is a security/CAPTCHA field.
 *
 * @example
 * isSecurityField('recaptcha') // true
 * isSecurityField('email')     // false
 */
export const isSecurityField = (fieldType: string): boolean =>
  (SECURITY_FIELD_TYPES as readonly string[]).includes(fieldType)

```
