Jump to content

<SOLVED> Hide tabular results if another field is empty

Recommended Posts


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:

if (document.getElementById("EditRecordContact_Mobile").value = "") {

<a href="skype:[@field:Contact_Mobile]?call" id="hide_link">Click here to call</a>


Thanks in advance

Link to comment
Share on other sites

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>

var count_mobile = ("[@field:Contact_Mobile]").length;
if (count_mobile < 5) {
document.getElementById("mobile_icon[@field:Open_Interest_Open_Interest_ID]").style.display = "none";

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...