Thanks Matt. When I used the condensed code you provided it worked
like a charm. I wonder why set_element_properties failed.
On Oct 23, 12:18 am, Matt Ryan <
matt.d.r...@gmail.com> wrote:
> The code looks OK to me -- nothing obvious that would keep things from
> working. The first thing I would check would be to make sure that my
> IP was getting notices, though, because
> $this->get_element_name_from_label('High School Graduation Year'); is
> inherently fragile -- any change to the label and the method will
> return false.
>
> Not really a solution so much as an FYI: you should be able to do the
> same thing in two lines:
>
> $grad_year = $this->get_element_name_from_label('High School Graduation Year');
> $this->change_element_type($grad_year, 'year',
> array('num_years_after_today' => 4, 'num_years_before_today' => 4,));
>
> -- Matt
>