Adding a CustomField to QuickCreate

Does anyone know the trick to adding a custom field dropdown to the
/Elements/QuickCreate web form?

I’m trying to pull in and use the /Elements/SelectCustomFieldValue
code to use that to figure out which CustomField (I’ve got two
defined) to pull in.

My CustomField is just a bunch of location codes, so I’d like to be
able to put that into the QuickCreate script right up front.

I’m trying:

<&|/l&>Location:
<& /Elements/SelectCustomFieldValue, CustomField => 'Location', ShowNullOption => \ 0 &>

But it’s not working, it keeps throwing an exception back at me, as
shown below. I’ve tried using ‘Name’ => ‘Location’ instead, but the
same type of error.

Thanks,
John

John Stoffel - Senior Staff Systems Administrator - System LSI Group

Toshiba America Electronic Components, Inc. - http://www.toshiba.com/taec
john.stoffel@taec.toshiba.com - 508-486-1087

Subject:
Queue:
Location:

System error
error: Can’t locate object method “Type” via package “Location” (perhaps you forgot to load “Location”?) at /var/lib/rt3/share/html/Elements/SelectCustomFieldValue line 47.
context:

43: %# those contributions and any derivatives thereof.
44: %#
45: %# }}} END BPS TAGGED BLOCK
46: <& /Elements/Callback, %ARGS &>
47: % if ($CustomField->Type =~ /Select/i) {
48: % my $values = $CustomField->Values;
49:
50: -
51: <&|/l&>(no value)</&>

code stack: /var/lib/rt3/share/html/Elements/SelectCustomFieldValue:47
/var/lib/rt3/local/html/Elements/QuickCreate:20
/var/lib/rt3/local/html/index.html:13
/var/lib/rt3/share/html/autohandler:221
raw error