Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Set a specific Caldera Forms field to NOT be required
add_filter( 'caldera_forms_render_get_field', function( $field ){
//IMPORTANT: Change this to your field's ID
if( 'fld1234' === $field[ 'ID' ] ){
$field[ 'required' ] = 0;
return $field;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment