Yes that really helps me.
Now it's working fine and now is time to start again with drop down boxes
and see what happens.
Really thanks

2008/1/31, Sune T. Tougaard <[EMAIL PROTECTED]>:
>
>  The last time i tried to attach something to this list, the mail never
> made it to the list, so i'm just putting it in the body.
>
> Here is my complete
> "<OTRS_CONFIG_Home>/Kernel/Output/HTML/<themename>/CustomerTicketMessage.dtl":
>
> # --
> # CustomerTicketMessage.dtl - provides HTML form for customer message
> # Copyright (C) 2001-2007 OTRS GmbH, http://otrs.org/
> # --
> # $Id: CustomerTicketMessage.dtl,v 1.10 2007/06/18 09:33:57 martin Exp $
> # --
> # This software comes with ABSOLUTELY NO WARRANTY. For details, see
> # the enclosed file COPYING for license information (GPL). If you
> # did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
> # --
>
> <!-- start form -->
> <script language="JavaScript" type="text/javascript">
> <!--
> function submit_compose() {
>     if (document.compose.Subject.value == "") {
>         alert('$JSText{"A message should have a subject!"}');
>         document.compose.Subject.focus();
>         return false;
>     }
>     else if (document.compose.Body.value == "") {
>         alert('$JSText{"A message should have a body!"}');
>         document.compose.Body.focus();
>         return false;
>     }
> <!-- dtl:block:TicketFreeTextCheckJs -->
>     else if (document.compose.$Data{"TicketFreeTextField"}.value == "") {
>         alert('$JSText{"A required field is:"} ' + 
> document.compose.$Data{"TicketFreeKeyField"}.value
> + '!');
>         document.compose.$Data{"TicketFreeTextField"}.focus();
>         return false;
>     }
> <!-- dtl:block:TicketFreeTextCheckJs -->
>     else {
>         return true;
>     }
> }
> // Function to put form fields into the textarea body.
> function replaceBody(theForm) {
>     var bodyContent = "";
>     var formElement = theForm.elements;
>     for(i=0; i<formElement.length; i++) {
>         // All form fields that we want, are prefixed with "CustForm_".
>         if (formElement[i].name.match("CustForm_") == "CustForm_") {
>             // But we don't really want it shown in the ticket. Remove it.
>             formElement[i].name =
> formElement[i].name.replace(/^CustForm_/, "");
>             // Show the field name and its value on its own line.
>             bodyContent = bodyContent + formElement[i].name + ': ' +
> formElement[i].value + '\r\n';
>             }
>         }
>     // Replace the hidden "Body" area with the contents of the form
> fields.
>     document.compose.Body.value = bodyContent;
>     // Return original submit function.
>     return submit_compose();
> }
> //-->
> </script>
>
> <table border="0" width="100%" cellspacing="0" cellpadding="3">
>   <tr>
>     <td class="mainhead">
>       $Env{"Box0"}$Text{"new ticket"}$Env{"Box1"}
>     </td>
>   </tr>
>   <tr>
>     <td class="mainbody">
>       <br>
>       <table border="0" width="680" align="center" cellspacing="0"
> cellpadding="4">
>         <tr>
>           <td colspan="2" class="contenthead">$Text{"Options"}</td>
>         </tr>
>         <tr>
>           <td class="contentbody">
>             <form action="$Env{"CGIHandle"}" method="post" name="compose"
> enctype="multipart/form-data">
>               <input type="hidden" name="Action" value="$Env{"Action"}">
>               <input type="hidden" name="Subaction" value="StoreNew">
>               <input type="hidden" name="Expand" value="">
>               <input type="hidden" name="FormID" value="$QData{"FormID"}">
>               <table border="0">
> <!-- dtl:block:TicketType -->
>                 <tr>
>                   <td class="contentkey">$Text{"Type"}:</td>
>                   <td class="contentvalue"> $Data{"TypeStrg"}</td>
>                 </tr>
> <!-- dtl:block:TicketType -->
>                 <tr>
>                   <td width="15%" class="contentkey">$Text{"To"}:</td>
>                   <td width="85%" class="contentvalue">
>                     $Data{"ToStrg"}
>                     <font color="red" size="-2">$Text{"$Data{"Queue
> invalid"}"}</font>
>                   </td>
>                 </tr>
>                 <tr>
>                   <td class="contentkey">$Text{"Subject"}:</td>
>                   <td class="contentvalue">
>                     <input type="text" name="Subject"
> value="$QData{"Subject"}" size="70">
>                     <font color="red" size="-2">$Text{"$Data{"Subject
> invalid"}"}</font>
>                   </td>
>                 </tr>
> <!-- dtl:block:TicketService -->
>                 <tr>
>                   <td class="contentkey">$Text{"Service"}:</td>
>                   <td class="contentvalue"> $Data{"ServiceStrg"}</td>
>                 </tr>
> <!-- dtl:block:TicketService -->
> <!-- dtl:block:TicketSLA -->
>                 <tr>
>                   <td class="contentkey">$Text{"SLA"}:</td>
>                   <td class="contentvalue"> $Data{"SLAStrg"}</td>
>                 </tr>
> <!-- dtl:block:TicketSLA -->
>                 <tr>
>                   <!--<td class="contentkey">$Text{"Text"}:</td>
>                   <td class="contentvalue">
>                     <textarea name="Body" rows="15"
> cols="$Config{"Ticket::Frontend::TextAreaNote"}"
> wrap="$Env{"BrowserWrap"}">$QData{"Body"}</textarea>-->
>
>                     <input type="hidden" name="Body"
> value="$QData{"body"}">
>                     <td class="contenthead">Who are you?</td>
>                     <td class="contentvalue">
>                       <tr>
>                         <td class="contentkey">Name:</td>
>                         <td class="contentvalue"><input type='text'
> name='CustForm_Name' id='CustForm_Name' size='70' value=''></td>
>
>                       </tr>
>                       <tr>
>                         <td class="contentkey">Company:</td>
>                         <td class="contentvalue"><input type='text'
> name='CustForm_Company' id='CustForm_Company' size='70' value=''></td>
>
>                       </tr>
>
>                     <font color="red" size="-2">$Text{"$Data{"Body
> invalid"}"}</font>
>                   </td>
>                 </tr>
>                 <tr>
>                   <td class="contentkey">$Text{"Attachment"}:</td>
>                   <td class="contentvalue">
>                     <table cellspacing="0" cellpadding="0" width="400">
> <!-- dtl:block:Attachment -->
>                       <tr>
>                         <td>$QData{"Filename"}</td>
>                         <td>$QData{"Filesize"}</td>
>                         <td align="right">
>                           <input class="button" type="submit"
> name="AttachmentDelete$QData{"FileID"}" value="$Text{"Delete"}">
>
>                         </td>
>                       </tr>
> <!-- dtl:block:Attachment -->
>                       <tr>
>                         <td colspan="2"><input name="file_upload"
> type="file" size="40" class="fixed"></td>
>                         <td align="right">
>                           <input class="button" type="submit"
> name="AttachmentUpload" value="$Text{"Attach"}">
>                           <a name="attachment"></a>
>                         </td>
>                       </tr>
>                     </table>
>                   </td>
>                 </tr>
> <!-- dtl:block:Priority -->
>                 <tr>
>                   <td class="contentkey">$Text{"Priority"}:</td>
>                   <td class="contentvalue"> $Data{"PriorityStrg"}</td>
>                 </tr>
> <!-- dtl:block:Priority -->
> <!-- dtl:block:FreeText -->
>                 <tr>
>                   <td class="contentkey">$Data{"TicketFreeKeyField"}:</td>
>                   <td
> class="contentvalue">$Data{"TicketFreeTextField"}</td>
>                 </tr>
> <!-- dtl:block:FreeText -->
> #                <tr>
> #                  <td
> class="contentkey">$Data{"TicketFreeKeyField1"}:</td>
> #                  <td
> class="contentvalue">$Data{"TicketFreeTextField1"}</td>
> #                </tr>
> #                <tr>
> #                  <td
> class="contentkey">$Data{"TicketFreeKeyField2"}:</td>
> #                  <td
> class="contentvalue">$Data{"TicketFreeTextField2"}</td>
> #                </tr>
> #                <tr>
> #                  <td
> class="contentkey">$Data{"TicketFreeKeyField3"}:</td>
> #                  <td
> class="contentvalue">$Data{"TicketFreeTextField3"}</td>
> #                </tr>
> #                <tr>
> #                  <td
> class="contentkey">$Data{"TicketFreeKeyField4"}:</td>
> #                  <td
> class="contentvalue">$Data{"TicketFreeTextField4"}</td>
> #                </tr>
> <!-- dtl:block:FreeTime -->
>                 <tr>
>                   <td
> class="contentkey">$Text{"$QData{"TicketFreeTimeKey"}"}:</td>
>                   <td class="contentvalue">$Data{"TicketFreeTime"}</td>
>                 </tr>
> <!-- dtl:block:FreeTime -->
> #                <tr>
> #                  <td
> class="contentkey">$Text{"$Config{"TicketFreeTimeKey1"}"}:</td>
> #                  <td class="contentvalue">$Data{"TicketFreeTime1"}</td>
> #                </tr>
> #                <tr>
> #                  <td
> class="contentkey">$Text{"$Config{"TicketFreeTimeKey2"}"}:</td>
> #                  <td class="contentvalue">$Data{"TicketFreeTime2"}</td>
> #                </tr>
>               </table>
>             </td>
>           </tr>
>           <tr>
>             <td class="contentfooter">
>               <!--<input class="button" accesskey="g" type="submit"
> value="$Text{"Submit"}" onclick="return submit_compose();">-->
>
>               <input class="button" accesskey="g" type="submit"
> value="$Text{"Submit"}" onclick="return replaceBody(this.form);">
>
>             </td>
>           </tr>
>         </table>
>       </form>
>       <br>
>     </td>
>   </tr>
> </table>
> <!-- end form -->
>
> And the result after submitting and viewing a ticket:
>
> From: Sune T. Tougaard <removed>
> To: Raw
> Subject: TypedSubject
>
> Name: TypedName
> Company: TypedCompany
>
> Hope it helps this time.
>
> --
> /Sune
>
>
>
> ________________________________
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]<[EMAIL PROTECTED]>]
> On Behalf Of Miguel Dias
> Sent: 31. januar 2008 15:33
>
> To: User questions and discussions about OTRS.org
> Subject: Re: [otrs] pre-sales oriented
>
>
> I do all of the lines and I steel have the problem.
> 1- I have selected a queue in the "To:"
> 2- the missing space was a error of copy paste
> 3- I have put the line just like you have and nothing happens
>
> When you do the changes to your DTL you can still create a ticket?
> Can you please send me your modified DTL file and I will see if it works.
> Thankyou
>
> 2008/1/31, Sune T. Tougaard <[EMAIL PROTECTED]>:
>
>         First of all, make sure that you have selected a queue in the
> "To:" dropdown box.
>         Otherwise you'll get an "*Invalid" message.
>
>         Second, in the line:
>
>         <input class="button" accesskey="g" type="submit"
> value="$Text{"Submit"}" onclick="returnreplaceBody(this.form);">
>
>
>         You may be missing a space between "return" and "replaceBody".
>
>         Third, in the line:
>
>         <select name="Dest"
>
>         I think there should be some more content...
>         Mine looks like this:
>
>         <select name="Dest"    onchange="document.compose.Expand.value='3';
> document.compose.submit(); return false;">
>
>         I don't know if it's because of an incomplete copy-paste into this
> mail, or if it is indeed missing from the page output.
>
>         (i do not see this line directly in the dtl file, but in the page
> output)
>
>         Let me know if you need a complete dtl file.
>
>         --
>         /Sune
>
>
>
> ________________________________
>
>         From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]<[EMAIL PROTECTED]>]
> On Behalf Of Miguel Dias
>         Sent: 31. januar 2008 11:03
>         To: User questions and discussions about OTRS.org
>         Subject: Re: [otrs] pre-sales oriented
>
>
>                 So I made the changes and it is what I want but the new
> problem now is SUBMIT the ticket.
>         I always have *invalid underneath of options.
>         Can please some one help me?
>         Here is my code:
>
>                 [STT] [...cut...]
>
>         _______________________________________________
>         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
>         Support or consulting for your OTRS system?
>         => http://www.otrs.com/
>
>
>
> _______________________________________________
> 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
> Support or consulting for your OTRS system?
> => http://www.otrs.com/
>
_______________________________________________
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
Support or consulting for your OTRS system?
=> http://www.otrs.com/

Reply via email to