Solved

HTML hide entire row if custom field value if empty

Posted on 2013-12-09
3
181 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
  • 2
3 Comments
 
LVL 30

Expert Comment

by:renazonse
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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…

862 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now