Tutorial: Simple Form

This is a simple form created using most of the Scriptcase’s default values for a Form application. Using you this form you can:

  • Use the ‘Add New’ button to show a blank form.
  • You can modify the record content and press the ‘Save’ button to commit the changes to the database.
  • You can use the ‘Copy’ button to make a copy of the current record content and show it in a blank form in order to insert the data into the database.

On the bottom toolbar you will find the navigation buttons used to move forward and backwards on the records and you will also find the recount count feature.

Creating a PHP Form with a Copy button

In this example we will develop a form of “Single record” where we can view features as: copy button, quick search and a field data using a multi-month calendar.

Creating Form

1. Create a new application form type (single record) based on the table Employees .

2. Access the item “Toolbar” from the application menu

3. Add the button “Quicksearch” and “Copy” in the toolbar.

4. In the application menu go to the field settings “birthdate” in the folder fields.

5. In the “Values Formatting” check “show calendar” and “additional months” type to display three months on the calendar.

6. Click on the Run button .

To see more examples created with Scriptcase click here

Tutorials in the same category

Form with special fields

In this example, we'll see how to configure a couple of Scriptcase special fields, in a form applica...

Master-Detail (Single-to-Single)

In this example, a Master / Detail complete application, where we get an edit form of categories and...

Generate PDF from Forms

In this example we will see how to configure the application form to display the button to print the...

Form Mobile

Scriptcase Form applications are generated with mobile responsiveness automatically. Selectin...

Comment this post