[Rt-devel] Special Custom Field Display/Edit - Suggestions?

Todd Williams willir70 at gmail.com
Tue Oct 30 11:51:34 EDT 2007


Hello RT world,

Running RT 3.6.4 currently on Suse 9.3 x86 with MySQL 4.1.x and/or Oracle 9i
available.  My apologies if you see this twice, as I posted this in both
Users and Devel groups, but I thought both applied in this case.

We would like to use a SINGLE Custom Field in a somewhat unusual manner, if
possible.  We would like to modify the "ShowCustomFields" and
"EditCustomFieldText" html Elements to allow both editing and display of a
very special custom field.  For this custom field, we would like to present
a specifically formatted repeatable text entry form (including drop down
selections, text entry, etc.) along with incorporating some JavaScript field
validation all as a part of the single custom field.  We have some
JavaScript code already that will allow us to add and remove the repeatable
form elements.

The question at hand is, are we able to somehow include a custom
JavaScript+HTML form as a single custom field?  My thought is, we could
store the individual field values as comma or pipe delimited text within the
custom field and write the display routines around parsing that
information.  How do we put together the changes to the EditCustomFieldText
Elements such that it will take input from either a pop-up form or from an
embedded HTML form displayed in the place of the single custom field?
Perhaps I'm over thinking this, but there almost has to be a way to do this.

Pseudo-code as follows:

% if ( $CustomField->Name eq 'Special_Field' ) {
%     ### Display special repeatable HTML form with JavaScript validation
here
% } else {
%     ### Original textarea input field here
% }

In short, this all needs to be incorporated into ONE CustomField if at all
possible, as there may be 99 some entries in this section (CustomField), as
a result we would not want to create 99 x10 fields - as individual custom
fields to accomplish this.

Has anyone done anything similar to this?  Can anybody offer some pointers,
ideas, or thoughts?  Any suggestions would be greatly appreciated.

Thanks!

Todd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/rt-devel/attachments/20071030/1e760e8b/attachment.htm


More information about the Rt-devel mailing list