Solved

HTML hide entire row if custom field value if empty

Posted on 2013-12-09
3
180 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

746 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

10 Experts available now in Live!

Get 1:1 Help Now