Mods to "EditCustomFields" Element

Hi all,

I’m trying to make a modification to the EditCustomFields element so that I
can control which fields are displayed by a url parameter, e.g:

When I do: Modify.html?id=1024&fieldDef=5

Then I want to see only customfield 5 in the modify page.

I looked at this:

% } % $i++; % } % }
<%$CustomField->Name%>
<%$CustomField->FriendlyType%>
<& /Elements/EditCustomField, Object => $TicketObj, CustomField => $CustomField, NamePrefix => $NamePrefix , Default => $m->notes('Field-' . $CustomField->Id), &> % if (my $msg = $m->notes('InvalidField-' . $CustomField->Id)) {
<% $msg %>

And added something like this (makred with “# ++>”):

% } % $i++; # ++> % if ( ~defined $ARGS{'fieldDef'} || $ARGS{'fieldDef'} eq $CustomField->id ) { % } # ++ > % } % }
<%$CustomField->Name%>
<%$CustomField->FriendlyType%>
<& /Elements/EditCustomField, Object => $TicketObj, CustomField => $CustomField, NamePrefix => $NamePrefix , Default => $m->notes('Field-' . $CustomField->Id), &> % if (my $msg = $m->notes('InvalidField-' . $CustomField->Id)) {
<% $msg %>

I was kind of expecting the URL query_string parameters to show up in the
ARGS array, but I am apparently mistaken :wink:

If anyone can suggest a simple way that I can make the above concept work
out, I will be most appreciative!

Thanks, regards, Mike.