Jump to content

Conditionally format fields in Gallery result page

Recommended Posts

I see. For the phone number formatting, you can use this (assuming Phone is of Data Type Integer):


<script type="text/javascript">
    document.getElementById('FIELDNAME').innerText = '[@field:Int]'.replace(/[^\d]+/g, '').replace(/(\d{3})(\d{3})(\d{4})/, '($1) $2-$3');


Link to post
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...