Hidden fields

A place for users and developers of the Xataface to discuss and receive support.

Postby njw » Wed Aug 16, 2006 3:08 am

Fields that are set to hidden on the edit tab (and don't display) are visible on the view tab. Can this be changed?

Thanks

Neil
njw
 
Posts: 280
Joined: Wed Dec 31, 1969 5:00 pm

Postby dal » Fri Aug 18, 2006 11:07 am

Yeah, I noticed the same thing. I guess you can override the view tab template manually, and not display any hidden fields.

Maybe there's an easier way to do this...We'll have to wait until Steve gets back and see.
dal
 
Posts: 8
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Sat Aug 19, 2006 10:34 pm

Sometimes you may want a field to be hidden on the edit form yet displayed on the view form (e.g. the auto increment id). I have created another attribute "visibility:browse" in version 0.6.2 (now available at http://prdownloads.sourceforge.net/dataface/dataface-0.6.2.tar.gz?download) that can be used to "hide" a field in the view tab:

e.g.

[fieldname]
visibility:browse = hidden ; will cause field to be hidden in view tab.

Best regards

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby njw » Mon Aug 21, 2006 4:36 am

Thanks Steve. It was the auto increment field I specifically wanted to hide!

Neil
njw
 
Posts: 280
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 18 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved