Last active
October 2, 2019 00:29
-
-
Save mathetos/d6873adb64c4f93b91403447ece59fbd to your computer and use it in GitHub Desktop.
Add .documents class to specific rows of a Caldera Form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add .documents class to divs of the Employee Onboarding Caldera Form | |
add_action( 'caldera_forms_grid_row_class', function($rowClass, $row, $config ){ | |
//Change your field ID here | |
if('CF5d8ceba87e343' == $config[ 'form_id' ]){ | |
if( $row==4 || $row==5 ) { | |
$rowClass .= ' documents'; | |
} | |
} | |
return $rowClass; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment