PHP Classes


Recommend this page to a friend!

      Auto form  >  All threads  >  Documentation  >  (Un) Subscribe thread alerts  
Summary:Is there a more complete document for all options to this class?
Author:Carlos Chavez
Date:2016-08-03 20:48:14


  1. Documentation   Reply   Report abuse  
Picture of Carlos Chavez Carlos Chavez - 2016-08-03 20:48:14
I was wondering if there is some more documentation available for this class? The examples do not really cover all the options available.

I was looking for two things specifically. First, is there a way to disable the submit button that is generates with the form? I use Javascript and JQuery to submit the form so my buttons are generated with bootstrap. Second, is there a way to disable fields? I do not want to exclude them from the form, I just need to make sure some fields cannot be edited by the user. I can do this from jquery once the form is generated but maybe I can do it from the class instead? Something like the $ex array but that only disables editing of that particular field.

Great class, it is very simple to use. Thank you.

  2. Re: Documentation   Reply   Report abuse  
Picture of Arturs Sosins Arturs Sosins - 2016-08-04 12:28:33 - In reply to message 1 from Carlos Chavez

Closes to documentation is this: ...

unfortunately there is no configuration for disabled inputs and yes doing it on javascript only part is probably not a good idea in case javascript is disabled.

but honestly my current day job is not related to PHP anymore, for almost 2 years now, so I can't keep the class updated with new features, but if you are willing to pinch in, I can publish it on github and would gladly accept PRs and publish updated package here.

Adding such functionality should be straight forward, adding array containing disabled field, providing method to modify this array and then editing all *_type methods that generate input to check if this input should be disabled or not.