Page 1 of 1

AG app - disabled fields

Posted: 2016-07-13 14:23
by grimblefritz
Please add a field property of disabled. This is in addition to, not in place of, readonly.

Re: AG app - disabled fields

Posted: 2016-08-08 07:56
by a.gneady
Hmm .. you could add javascript code to do this in the hooks/tablename-dv.js file (where tablename is the name of the concerned table):

Code: Select all

$j(function(){
    $j('#fieldname').prop('disabled', true);
})
Including this as a field property in AppGini would add more complexity to the UI ... Is there a really strong need for doing this rather than using the code above?

Re: AG app - disabled fields

Posted: 2016-08-08 11:43
by grimblefritz
I use disabled fields quite a bit, but I can't speak for others.

Also, I consider this request to be superseded by the following:

http://forums.appgini.com/phpbb/viewtop ... only#p6127

I arrived at that solution after experiencing unintended problems with using the disabled property. There is more discussion of that here:

http://forums.appgini.com/phpbb/viewtop ... ndex#p6041