PDA

View Full Version : Show/Hide Web Site & Email Clickable Icon


BigBear
10-13-2008, 01:42 PM
Hello,

How do I make the Web Site and Email clickable icons ONLY appear when there is data in that field for a given record?

Currently these icons are displayed for all records, but not all records have web sites and email addresses.

Thanks for helping a newbie like me.
Lisah

Kayla
10-14-2008, 11:02 AM
The icons will not appear unless there is data in the field.

BigBear
10-14-2008, 03:28 PM
Hmmmmm....

Tried it again and still have icons appearing next to every record, even those without data. Tried creating a new WebSite & Email field and the same thing happened.

Is there a certain data type or box that I need to check?

Thank you.
Lisah

clifford
10-14-2008, 03:37 PM
What do you have set for 'link behavior' for this field?

BigBear
10-14-2008, 05:16 PM
The link behavior is set at "Web Link" with the value to display as "Clickable Icon...".

I have attached an image with my settings.

Thanks for the help.
Lisah

clifford
10-14-2008, 05:25 PM
The datatype should be VarChar with a length of maybe 50 or so depending on the urls you will enter.

BigBear
10-16-2008, 08:04 AM
Thanks for your help. I changed the field types to VarChar (both on the admin and user iterations of the database) and it did not make a difference.

Here is what I have......

http://www.athletescloset.com/databases/products_races_user/races_view.php

You will notice that the 5K Run/Walk To Feed The Hungry on 10/25/08 does not have a web site or email address but still has the icons.

When the icons are clicked in fields that have no data they go nowhere (the web site icon actually points back into the site directory)

Thank you
Lisah

Kayla
10-16-2008, 03:04 PM
Well the icons I believe are displayed by default in the generated tablename_templateTV file. Have you tried text link if the icons bother you.

BigBear
10-17-2008, 08:56 AM
The text links make the columns very wide, and I like the look of the icons. I just don't want them to appear in columns that have no data.

What I may do is create a sort of friendly error page saying that "there is no web site available for this entry" and link the non-website icons to that.

Thanks for all the help.
lisah