My Webprojects, Software, Work

Gravity Forms List Field Type: Make sure to have a minum number of rows

I recently ran in the problem that a client wanted an application form which is easy peasy built with Gravity forms.

They also wanted to ensure that at least 3 previous jobs are filled out. The previoius employers field was a list field (Name, Address, Time worke there etc.)

If you ever need to enforce a minumum amount of list items use the Gravity Form field validation :

add_filter( 'gform_field_validation_1_27', 'force_three_rows_in_lists', 10, 4 );

function force_three_rows_in_lists($result, $value, $form, $field){

if ( $result['is_valid'] && count($value) < 3) {
$result['is_valid'] = false;
$result['message'] = 'Please enter at least 3 previous employers (Use the + Button at the end to add more lines)';

return $result;

The count($value)< 3 is the important part, the $value is an array of rows that are submitted.


More Info about that filter in the Gravity Froms Documentation.



My grandfather used to have a bunch of gladiolus in his garden when I grew up. I spend a lot of Summer’s at my grandparents and gardening was always a big thing to get more vegetables on the table. My grandfather had kind of a green thumb and I can’t recall a year when he hadn’t had potatoes, strawberries, apples, raspberries and other things going on in his garden. 

That’s the reason I plant gladiolus in front of my house. And now they are starting to bloom. 


The suspected Hacker

I have a co-worker who lvoes to print out articels for everyone in the offfice. He is a very smart guy (no cell phone & NY Times subscription kind of smart).

I found an article about the Blackhat conference on my desk this morning. This fuels my suspiscion that my co worker suspect me to be some kind of oddball hacker computer whiz. (Which I am NOT (or maybe)).

So lets fire up the command line, start gulp (to convert sass -> css and reload my browser) and deploy with git via commandline. Those status messages seem to work like dark hacker magic to some people.



WordPress on my Mac

In a further invasion of my privacy, that WordPress thing is now not only on my Phone, it is on my desktop as well. Works super easy and as expected right now. You clearly se the infleunec of the Admin interface

Small enhancment idea, if we could add multiple accounts (Client Blog & personal blog). That would be super cool.