Post

3 followers Follow
0
Avatar

Error when setting date field

I'm trying to set the value for a date field, using the PHP client library. Here is the code I'm using as an example:

$item->add_field(new PodioDateItemField('check-in'));
$item->field('check-in')->set_value(array('start_date' => '2014-02-03'));

However when I try save the item I get the error "A value is required for either 'start' or 'start_date'". Can anyone please let me know what is wrong with my code?

Thanks

Mike Dowson

Please sign in to leave a comment.

2 comments

0
Avatar

The mentioned URL of github not working. Could anybody help me out to set value for date field using podio api?? 

Thanks in advance.

devteam1 0 votes