Internet, Work

Apple Watch

Thanks to my companies Christmas present I’m running around with a computer on my wrist.
A computer with more processing  power (and a better display) than my first desktop computer that occupied half a desk and was plugged into 220V (yes it was in Europe).

Short term effect : I think I move more. The activity app and its reminders help not to “forget” about moving and your workout. Neat feature.  It also inspires competition with your co workers 🙂

The notifications are nice and dealing with emails and messages is super easy. As usual with Apple, all well thought trough as long as you stay within the Apple universe. It unlocks my Macbook, I can control my music on my iPhone and use my Apple TV.

Overall nice piece of technology, when you have other Apple devices.

T

 

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.

Uncategorized

Gladiolus 

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.