Page 1 of 1

Hello & assistance requested

Posted: Fri Jan 08, 2016 1:57 am
by jchalo99
Hi,
I am new to everything. I was a gamer. I am working on a new website for my volunteer fire department.

I am trying to give members access to a database. for inventory & calls & training etc.

I am starting on an inventory database.
It has many columns, Who/Where it is, What it is etc.
When inputting data using the Edit form. i want if they are assigning the gear to a person, a drop down to be hidden, but if they are assigning to an apparatus the field to show up.
Doesn't sound difficult. but when using the "Display Condition" it only changes when they save the record.

I was thinking to immediately save the record when the "Assigned to" drop down changes, but i think their should be an easier way.

Re: Hello & assistance requested

Posted: Mon Jan 11, 2016 6:24 am
by admin
jchalo99,

The Display Condition is PHP (and SQL) choosing , on the server side whether or not to show a field.

You can use jQuery to hide a field on the client side as things change. eg $('#the_dropdown').hide()
Capture.PNG
Steven