Jump to content

Phone number scrpt

Recommended Posts

9 hours ago, Alwayslost said:

Looking for a script in data pages, where if the phone number doesn't exist, the image presently used for phone number changes... 

I have a similar script for "Yes/No" fields but don't know how to manipulate it for from Yes/No to Blank/not blank.. Any input is appreciated. 


You may find an example in this post. Hope that helps 

Link to comment
Share on other sites

Hi Mathilda:

I read it but I don't understand it how it can work on phone number fields. Can you give me an example please with phone number field in there.


Also, would this work the same: if I have a check box for phone number and a field for phone number and then use the script below with correct field names of course:

<span style="color: #000000;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: normal;"><b>21+ </b></span><span id="iconage[@field:age][@field:ID]"></span> <script>

if ("[@field:age]" == "No"){

document.getElementById('iconage[@field:age][@field:ID]').innerHTML="<img width='18px' src='http://assets.goplaypool.com/files/theme/appcas/01no.png'/>";
} else if ("[@field:age]" == "Yes"){

document.getElementById('iconage[@field:age][@field:ID]').innerHTML="<img width='18px' src='http://assets.goplaypool.com/files/theme/appcas/01yes.png'/>";



Thank you in advance.


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...