Simong Posted September 3, 2016 Report Share Posted September 3, 2016 It is possible to conditionally format a field in Gallery result page? For example, I want to display blank for an email field (or hide it) if it contains "xyz". Another example, I want to reformat phone number display from 3101234567 to 310-123-4567. Quote Link to comment Share on other sites More sharing options...
JayMont Posted September 5, 2016 Report Share Posted September 5, 2016 You can use conditional forms to hide/show specific fields based on a condition: http://howto.caspio.com/datapages/forms/conditional-forms/ Quote Link to comment Share on other sites More sharing options...
Simong Posted September 5, 2016 Author Report Share Posted September 5, 2016 But in the Result Page, the feature is not available. Quote Link to comment Share on other sites More sharing options...
JayMont Posted September 7, 2016 Report Share Posted September 7, 2016 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.