<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Thanks Emmanuel for your response.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">My initial post was a little inaccurate, I forgot to mention some details:</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">1.    The user wants to add a ticket reply</div><div class="gmail_default" style="font-family:monospace,monospace">2.    The user writes (and prepares her message, attachments, etc)</div><div class="gmail_default" style="font-family:monospace,monospace">3.    The user presses the "Update Ticket", some condition is evaluated two possible outcomes (true, false)</div><div class="gmail_default" style="font-family:monospace,monospace">3.1   If false => submit reply</div><div class="gmail_default" style="font-family:monospace,monospace">3.2   If true  => the user is asked if the reply should be submitted</div><div class="gmail_default" style="font-family:monospace,monospace">3.2.1 User wants to continue => reply submitted</div><div class="gmail_default" style="font-family:monospace,monospace">3.2.2 User decides to abort reply submission => no ticket reply should be added</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">I tried to implement something in javascript to handle "3.2.2" but the reply is always submitted</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">I'm thinking now in a variation of your proposed solution. Perhaps bouncing the ticket reply including an 'onload'</div><div class="gmail_default" style="font-family:monospace,monospace">javascript alert for steps 3.2.1 of 3.2.2</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 23, 2016 at 6:22 PM, Emmanuel Lacour <span dir="ltr"><<a href="mailto:elacour@easter-eggs.com" target="_blank">elacour@easter-eggs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le 23/08/2016 à 22:59, Hugo Escobar a écrit :<br>
> Hi,<br>
><br>
> I need to be able to stop submitting a "Public Reply" correspondence<br>
> based on a evaluation that returns a Boolean value.<br>
><br>
> This decision must be taken when the user clicks the "Update Ticket" button<br>
><br>
> Everything I have tried fails because the form is always submitted.<br>
><br>
> Any help will be highly appreciated<br>
><br>
><br>
<br>
</span>create a file named<br>
..../rt/local/html/Callbacks/<wbr>YourOrg/Ticket/Update.html/<wbr>BeforeUpdate<br>
<br>
with a content such as:<br>
<br>
<%init><br>
<br>
if ( exists $ARGSRef->{SubmitTicket} ) {<br>
      # Write here your evaluation, you can use submitted values in<br>
%$ARGSRef and the ticket object $TicketObj<br>
      if ( !$evaluation ) {<br>
            push @$results, loc("Message that should be displayed to user");<br>
            $$skip_update = 1;<br>
      }<br>
}<br>
</%init><br>
<%args><br>
$TicketObj => undef<br>
$skip_update => undef<br>
$results => undef<br>
$ARGSRef => undef<br>
</%args><br>
<br>
<br>
don't forget to cleanup your mason cache and restart your webserver.<br>
<div class="HOEnZb"><div class="h5">---------<br>
RT 4.4 and RTIR training sessions, and a new workshop day! <a href="https://bestpractical.com/training" rel="noreferrer" target="_blank">https://bestpractical.com/<wbr>training</a><br>
* Boston - October 24-26<br>
* Los Angeles - Q1 2017<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,<br><br>Hugo Escobar<br><br>
<div><a href="http://www.associationfinancialservices.com/" target="_blank"><img src="cid:part1.02030600.00030308@enflyer.com" height="26" width="126" border="0"></a><br><br></div>4770 Biscayne Blvd, Ste 700<br>Miami, FL 33137<br>
<br>main: 305.677.0022<br>support: 305.921.4620<br>email: <a href="mailto:hescobar@afslc.com" target="_blank">hescobar@afslc.com</a><br><br>Follow us on Facebook and Linked-In<br>
<div><a href="http://www.facebook.com/pages/Miami-FL/ASSOCIATION-FINANCIAL/64952991864" target="_blank"><img alt="" src="cid:part1.08060004.03030107@enflyer.com" height="24" width="24" border="0"></a>  <a href="http://www.linkedin.com/companies/1006276" target="_blank"><img alt="" src="cid:part2.00090205.04060608@enflyer.com" height="24" width="24" border="0"></a> </div>
<br>NOTICE: This email and any attachment to this email may contain 
confidential information. If you are not the intended recipient, you 
must not review, retransmit, convert to hard copy, photocopy, use or 
disseminate this email or any attachments to it. If you have received 
this email in error, please notify us immediately by return email and 
delete this message. Please note that if this email contains a forwarded
 message or is a reply to a prior message, some or all of the contents 
of this message or any attachments may not have been produced by our 
firm. <b>As our firm may be deemed a debt collector, if your payment is 
in default, we may be attempting to collect a debt on behalf of the 
association, and any information obtained may be used for that purpose.</b><br></div></div>
</div>