1. Have a screen where they put in the name of the question and what type( i.e. Checkbox, text, password, list/menu.).
2. Then click on a submit button.
3. This is added to a table setup for questions that has the name and and Type of question.
4. Next lets take a text question. It would ask for the text you want displayed before the text box. it would ask if this is a multiline (text box) or single line. It would also ask for priority of the question, Width, Max Characters(only on Single Line),Number of Lines(Multi Line only.), Value, and Wrap(Multi Line only).
5. fill in and click on the submit button.
6. added to the database.
7. Then I would also need an editor to be able to make changes to the question or delete it.
8. Repeat steps for all other types of form elements.
Adding them to the form.
1. do a cfquery to get questions for form and sort by order.
2. display questions by priority
<form>
<table>
<cfoutput query=Questions>
<tr>
<td> #Question#
</td>
<td>
<input type="#type#" name="#name#" size="#textsize#" value="#textvalue#" <cfif #textType# is 'multiple rows'>textrows="#textrows#" wrap="#textwrap#"><cfelse>Maxlength="#textMaxChars#"</cfif>>
</td></tr>
</cfoutput>
</form>
Granted that this is a very simple example. But this is what I have been working on and was wondering if anyone has done something like this before. The client will not be doing custom forms, just custom form elements.
Jim Louis
>The preferred method in Mozilla is by DOM, that means using
>createElement. For IE currently insertCell and insertRow are preferred
>
>Micha Schopman
>Software Engineer
>Modern Media, Databankweg 12 M, 3821 AL Amersfoort
>Tel 033-4535377, Fax 033-4535388
>KvK Amersfoort 39081679, Rabo 39.48.05.380
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

