home
 
 

 
Forms
Surveys allow you to ask questions and get answers, and are very easy to set up. Forms are more powerful — you get to use the full complement of input devices available in HTML, and you get full control over the arrangement. Best of all, QDL automatically stores and retrieves the values. So you don't have to write any PHP or JS code to implement an HTML form that reads and writes a simple flat-file data store — just design the form and provide a unique name for each input, and QDL does the rest.
  1. Go to your Sandbox.
  2. Click the Action Menu icon (), and select the New Inside option ().
  3. Give the form a title, and click Submit.
  4. Do the same thing again, to create a blank post that will serve as the data store for the form.
  5. Click the Action Menu icon (), and next to the Metadata option (), click edit.
  6. In the Data Type section, select FRM.
  7. Check the username, created, and modified boxes if you want QDL to automatically add these to the form.
  8. For the Data Store, select the second post that you just created.
  9. In the Rights section, select who should have rights to which features. These rights cascade, from higher to lower, so somebody who has delete rights has all of the other rights too.
  10. Click Submit.
  11. Click the Action Menu icon (), and select one of the Edit options ().
  12. The toolbar will now have a few extra tools for creating form elements. Add these, along with text, fieldsets, tables, and whatever else you need to create your form.
  13. Make sure that all of the inputs are inside begin and end form tags.
  14. Make sure that each input has a unique name.
  15. Textareas are not currently supported.
  16. When you're done adding the elements you need, click Submit.
Here's an example. QDL automatically adds the action pop-up, where you control whether you're adding a new record, searching among existing records (using the same form to enter the criteria for the search), scrolling through the search results, editing an existing record, or deleting an existing record. QDL also adds the username, created, and modified fields, if you opted to have these included, and the Submit button at the bottom. The action pop-up defaults to the add new mode. After creating records, you can retrieve them by selecting the search mode, entering the criteria in the form, and clicking Submit. If multiple records match the criteria, you can scroll through them by clicking the Prev and Next buttons. You can also change the action to edit to change a record, or delete to remove it from the data store.
 
 
The "data store" is just an HTML table, which can be edited manually as desired.

← PREV Powered by Quick Disclosure Lite
© 2010~2021 SCS-INC.US
UP ↑