Solved

HTML hide entire row if custom field value if empty

Posted on 2013-12-09
3
187 Views
Last Modified: 2013-12-14
I am using a program called eMailSignature and it assists in creating a domain-wide signature lined to Active Directory fields. Most users do NOT have a mobile number but some do. How can I update the below html to 'hide' the entire 'Mobile' row if the <mobile_number> value is null?

<TABLE border=0 cellSpacing=0 cellPadding=1>
<TBODY>
<TR>
<TD><FONT color=#000000 size=1 face=Arial>Tel:</FONT></TD>
<TD><FONT color=#000000 size=1 face=Arial>((Telephone_number))</FONT></TD></TR>
<TR>
<TD><FONT color=#000000 size=1 face=Arial>Fax:</FONT></TD>
<TD><FONT color=#000000 size=1 face=Arial>((Fax_number))</FONT></TD></TR>
<TR>
<TD><FONT color=#000000 size=1 face=Arial>Mobile:</FONT></TD>
<TD><FONT color=#000000 size=1 face=Arial>((Mobile_number))</FONT></TD></TR>
<TR></TR></TBODY></TABLE></FONT><FONT color=#0000ff size=1>

Open in new window


Thanks!
0
Comment
Question by:Bianca
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 30

Expert Comment

by:Britt Thompson
ID: 39706445
You're not going to be able to do this with just HTML. It would require some sort of scripting language to query the contents of the fields and use CSS to hid the row. Since this is a signature for email it will never work properly. This is easy enough on the web but signatures are very basic in what they allow for content.

Is it possible in your application to apply email signatures by Group? If so, you can add all the users with mobile numbers to a specific group or OU and apply the signatures that way.
0
 

Accepted Solution

by:
Bianca earned 0 total points
ID: 39706582
I just found the program's 'insert conditional text' function, sorry for wasting your time but thanks anyway :)

{$$NULL(Mobile_number)$$VALUE( ((Mobile_number))
)$$}
0
 

Author Closing Comment

by:Bianca
ID: 39718510
There is NO way to do this with html, I found the program's own function to accomplish this task.
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question