Form Fields Separate form fields for insert and edit form (Addded in v 3.3)

Now you can define the separate form fields for insert and edit forms. As you know, formFields function is used to set both insert and edit form fields but if you want separate fields for the edit form, you can use editFormFields function to define the fields for edit form. If editFormFields function is not defined then formFields function fields will be used for insert and edit form like previously.

  
                                $pdocrud = new PDOCrud(); 
                                //set which form fields to display. It sets fields for both insert and edit form.
                                $pdocrud->formFields(array("first_name","last_name","Address")); // function to set form fields in both insert and edit
                                //If you want seperate fields for edit form then insert form, you can set using below function. 
                                $pdocrud->editFormFields(array("first_name","Address"));//added in v 3.3

                                echo $pdocrud->dbTable("employee")->render();
                                

Employee

Showing 1 to 10 of 91 entries

# Id First name Last name Address City State Zip Actions
1 14 Leigh Madden 1134 Commodo St. Jeannette IN 64702
2 15 Jenna Sims Ap #188-3087 Semper Rd. White Plains CO 51000
3 16 Marsden Mcknight 891-2555 Ligula Av. Peekskill VT 38453
4 18 April Copeland P.O. Box 940, 1713 Nunc Rd. White Plains CA 98831
5 19 Jason Hale Ap #667-483 Vulputate, St. Ventura SC 09689
6 20 Tana Malone 640-9421 Arcu. Avenue Modesto CA 90815
7 21 Dillon Andrews Ap #775-8997 Nunc Avenue Juneau GA 18307
8 22 Stone Kirkland P.O. Box 686, 9425 Morbi Road Colorado Springs UT 93246
9 23 Edward Burton 5310 Vel, Avenue Harrisburg AK 15122
10 24 Adam Ramsey 6383 Euismod Road Fulton AZ 14148
# Id First name Last name Address City State Zip Actions