MyNameIsSean Posted June 20, 2017 Report Share Posted June 20, 2017 Hi, I have a tabular results field that displays contact information, and i have a html field that contains a link that activates a skype call to the number in the field, but i would only like to display that link only if the number is not empty. currently i have something like this, but it is not working: <SCRIPT LANGUAGE="JavaScript"> if (document.getElementById("EditRecordContact_Mobile").value = "") { $("#hide_link").hide(); } </SCRIPT> <a href="skype:[@field:Contact_Mobile]?call" id="hide_link">Click here to call</a> Thanks in advance Quote Link to comment Share on other sites More sharing options...
MyNameIsSean Posted June 23, 2017 Author Report Share Posted June 23, 2017 I have came up with the following solution: <a href="skype:[@field:Contact_Mobile]?call" id="mobile_icon[@field:Contact_ID]">Click here to call</a> <script> var count_mobile = ("[@field:Contact_Mobile]").length; if (count_mobile < 5) { document.getElementById("mobile_icon[@field:Open_Interest_Open_Interest_ID]").style.display = "none"; } </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.