[rt-users] custom field question

2009-05-19 Thread prescott
I am trying to figure out how to have a default value for a custom field. I have defined a custom field called billable it is a "select one value" field. I added the options for n and y in that order. How do I get the "n" to be the default option. It always has no value when the ticket is first cre

Re: [rt-users] custom field question

2009-05-19 Thread Ken Crocker
Prescott, Here's some code I use for doing the same type of thing: # set new value for CF Work-State my $ticket = $self->TicketObj; my $cf_obj = RT::CustomField->new($RT::SystemUser); my $cf_name = "Work-State"; my $cf_value = "Ready for Implementation; $cf_obj->LoadByName( Name => $cf_nam