[rt-users] Assign custom field to subject

2008-03-26 Thread lgrella
I have a user who would like the subject to be a drop down list of choices. I have not seen how to do this, so I have decided to create a custom field of a drop down list of choices, and if the subject is blank, move this custom field choice into the subject. I am not being successful. I have 2

Re: [rt-users] Assign custom field to subject

2008-03-26 Thread Drew Barnes
I would go with a variation of http://wiki.bestpractical.com/view/SelectRequestor Instead of selects to populate the box, just pre-define some and use the javascript to let a user enter his or her own subject. lgrella wrote: I have a user who would like the subject to be a drop down list of

Re: [rt-users] Assign custom field to subject

2008-03-26 Thread Gene LeDuc
Hi Laura, I think your approach should work, but I don't think you can set the subject with a direct assignment like that. Try $self-TicketObj-SetSubject($subject) instead. Also, I don't think you should be replacing spaces with underscores in the CF name; leave the spaces. Regards, Gene At

Re: [rt-users] Assign custom field to subject

2008-03-26 Thread lgrella
Thank you Gene, it works perfectly! --Laura Gene LeDuc wrote: Hi Laura, I think your approach should work, but I don't think you can set the subject with a direct assignment like that. Try $self-TicketObj-SetSubject($subject) instead. Also, I don't think you should be replacing