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');
 
</script>

 

Link to post
Share on other sites

Archived

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

×
×
  • Create New...