You enable the fields to show in Sysconfig for each screen, for example FrontEnd::Customer::Ticket::ViewNew, then Look for Ticket::Frontend::CustomerTicketMessage###DynamicField Just add the field name and 1 to showup and 2 to make it Required.
Play with that. Regards 2013/1/23 Pc Abrantes <pc.abran...@gmail.com> > Alvaro, thank you for your help. I've done that. How can I enable/disable > it? > > > 2013/1/23 Alvaro Cordero <alv...@gridshield.net> > >> Pablo, I believe it would have been easier to use a Dynamic Field for >> that kind of data, that you can just enable or disable to show up in the >> different screens. >> >> Regards >> >> >> 2013/1/23 Pc Abrantes <pc.abran...@gmail.com> >> >>> Hello Guys, I'm new to OTRS and Perl development and I'm having trouble >>> adding some new fields to the customer ticket form. >>> >>> One of these fields is the ticket complexity. I've created the table >>> "ticket_complexity" and associated it to the table "ticket". Then, I've >>> created the file Kernel::System::Complexity. >>> >>> On the CustomerTicketMessage.dtl I've added the following code (PS.: >>> this field is a combobox, but I've created as a text field just to see if >>> it would work): >>> >>> ... >>> >>> <!-- dtl:block:TicketComplexity --> >>> <div> >>> <label for="Complexity" class="Mandatory"> >>> <span class="Marker">*</span> >>> $Text{"Complexity"}: >>> </label> >>> <input title="Complexity" type="text" id="Complexity" >>> name="Complexity" value="$QData{"Complexity"}" class="Validate_Required >>> $QData{"ComplexityInvalid"}" /> >>> <div id="SubjectError" class="TooltipErrorMessage" ><p>$Text{"This >>> field is required."}</p></div> >>> <div id="ComplexityServerError" class="TooltipErrorMessage >>> NoJavaScriptMessage$QData{"ComplexityInvalid"}" ><p>$Text{"This field is >>> required."}</p></div> >>> <div class="Clear"></div> >>> </div> >>> <!-- dtl:block:TicketComplexity --> >>> >>> ... >>> >>> When I go to /otrs/customer.pl?Action=CustomerTicketMessage, I can't >>> see this field. Can anyone help me? I'm using OTRS 3.1.12. >>> >>> Thank you. >>> -- >>> *Paulo Cesar Abrantes* >>> >>> --------------------------------------------------------------------- >>> OTRS mailing list: otrs - Webpage: http://otrs.org/ >>> Archive: http://lists.otrs.org/pipermail/otrs >>> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs >>> >> >> >> >> -- >> ___________________________ >> Alvaro Cordero Retana >> Consultor de Tecnologias >> Gridshield Monitoreo de Redes e >> Infraestructura. >> 2258-5757 ext 123 >> alv...@gridshield.net >> www.gridshield.net >> --------------------------------------------------------------------- >> OTRS mailing list: otrs - Webpage: http://otrs.org/ >> Archive: http://lists.otrs.org/pipermail/otrs >> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs >> > > > > -- > *Paulo Cesar Abrantes* > > --------------------------------------------------------------------- > OTRS mailing list: otrs - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/otrs > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs > -- ___________________________ Alvaro Cordero Retana Consultor de Tecnologias Gridshield Monitoreo de Redes e Infraestructura. 2258-5757 ext 123 alv...@gridshield.net www.gridshield.net
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs