NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on March 28, 2009, 01:48:52 PM
-
Hi,
I have a True/False field in my browse . If it is True, I want to display a checkmark.ico. If it is false, I want to display a cancel type icon.
How does one get these into the browse templates?
TIA,
Ron Jolda
-
Hi Ron,
Add a String field to your browse, give it any old equate that makes sense, but nothing else. Then go to the "conditional" section. Add a condition for true and place the true picture in the image field. You can either add another condition for false or just set the default "image" section to your false picture.
Don't forget to make the fields you are using for the condition to be hot fields.
Regards
Bill Shields
-
Hi,
It looks like we have to use a variable to hold the name of the image file - is that correct?
Do the sizes have to be set here?
Thanks,
R Jolda
-
Hi Ron,
You can use a variable or literal ('images/mypic.png'). Just remember it all starts at the web folder within your programs folder. You can either set the width and height or ignore it and the browser will decide. Just depends upon what you want.
Oh, but you can't use .ICO files. Browsers don't like them. I convert the ones i use in my web apps to PNGs.
Regards
Bill Shields