I managed to do it with: {{form.custom.widget.zoom["_hidden"] = "hidden"}}
On Thursday, April 11, 2013 4:46:44 PM UTC+2, Domagoj Kovač wrote: > > Hi, > > i have a problem. > > This is my table definition. > > db.define_table('locations', > Field('name', 'string', > required=True, > requires=IS_NOT_EMPTY(), > label=LABEL(T("Naziv"), _for="locations_name")), > Field('parent_id', 'reference locations', > requires=IS_NULL_OR(IS_IN_DB(db, 'locations.id', > '%(name)s', zero=T("Molimo odaberite roditeljsku lokaciju"))), > label=LABEL(T("Roditelj"), _for="locations_parent_id" > )), > Field('gps_x', 'double', > label=LABEL(T("GPS X koordinata"), _for= > "locations_address_2")), > Field('gps_y', 'double', > label=LABEL(T("GPS Y koordinata"), _for= > "locations_address_3")), > Field('zoom', 'integer'), > ) > > Gps_x and gps_y are coordinates that i set with google maps API and they > are visible to the user. > Zoom field is a property from google maps API so when user goes to edit > form i can show him the map he saw when record was inserted. > > How can i make zoom field hidden, there are properties readable and > writeable, but they are not what i want. I want a field like <input > type="text" hidden="hidden" />. > How can i accomplish this? > > Is there i way that i could make my gps_x and gps_y fields read-only so > field are rendered as <input type=text read-only /> > > Thanks. > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.