Skip to content

Showing Escrow Amount ​

Displays the Credit Balance message if the logged on user has any credits in Escrow. Can also be used to display a message if the user has no credit in Escrow.

ACEweb Area(s) ​

XEnrollcard.htm, Person.awp, ProxyReg.awp, XWelcome.htm

Required Parameters ​

  1. Return string that will be displayed if the logged on user has credit in Escrow. Should contain a bracket-delimited format expression that will be replaced by the amount. Can include HTML markup.

Optional Parameters ​

  1. Name ID. For future use. Defaults to logged on user's name ID if blank.
  2. Return string that will displayed if the logged on user has no credit in Escrow. If blank, an empty string will be returned.

Example(s) ​

Credit Balance message when EscrowPayments INI is set to 0. No message is displayed if the user has no Escrow:

##ShowEscrow("<div class='escrow'><p>You have a credit of !!$$,$$$.99!!. Please call our office at "+config.cHelpPhone+" to apply your credit to a registration.</p></div>") ##

Credit Balance message when EscrowPayments INI is set to 1. A " You have no credits in Escrow" message is displayed if the user has no Escrow.

##ShowEscrow("<div class='escrow'><p>You have a credit of !!$$,$$$.99!!.</p><p>You can apply the credit to transactions that are less than or equal to your credit amount.</p><p>If the transaction is more, please contact us at "+config.cHelpPhone+" to apply the credit.</p></div>",,"<div class='escrow'><p>You have no credits in Escrow at this time.</p></div>") ##

Credit Balance message when EscrowPayments INI is set to 2. A " You have no credits in Escrow" message is displayed if the user has no Escrow.

##ShowEscrow("<div class='escrow'><p>You have a credit of !!$$,$$$.99!!.</p><p>You can apply the credit to registrations during the Checkout process. If your credit amount is less than the transaction, you must pay the remainder with a credit card.</p></div>",,"<div class='escrow'><p>You have no credits in Escrow at this time.</p></div>") ##

Example for person.awp template where you use the <%= %> delimiters. Returns logged on user's name in message:

<%=ShowEscrow("<div class='escrow'><p>"+strtran(Session.Getfield('logstatus'),'Logged on as ','')+" has a !!$$,$$$.99!! credit. Please call our office at "+config.cHelpPhone+" to apply the credit to a registration.</p></div>")%>

Notes ​

You may also need to add these styles to your copy of awStyles.css to format the Credit Balance message:

.escrow  
{  
border-top: double #009300;  
border-bottom: double #009300;  
}