Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

HTML hide entire row if custom field value if empty

Posted on 2013-12-09
3
Medium Priority
?
188 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

688 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