The Quik! Forms Engine requires the following parameters in order to generate a form.
...
Code Block | ||
---|---|---|
| ||
{ "HostFormOnQuik":true, // When set to true, this generates the forms using our Quik! Forms Viewer "TestFinalFormsMode": true, // When set to true, generates the form that is not yet published (in "Final" status) - if applicable "DraftMode": true, // Generates the forms with a DRAFT watermark displayed "QuikFormID":"12,449,5659", "FormFields":[ { "FieldName":"1own.FName", "FieldValue":"Peter Parker" } ] } |
...
Dim objQFE As QuikFormsEngine.QuikFormsEngine
Add your customer credentials (customers must always use their master account credentials)
...
objQFE.AddFieldToForm( _
FieldName:="1own.FName", _
FieldValue:="Owner 1 First Name", _
FieldReadOnly:=QuikFormsEngine.QFD.FieldReadOnly.NoRestrictions, _
FieldVisibility:=QuikFormsEngine.QFD.FieldVisibility.None, _
FieldRequired:=QuikFormsEngine.QFD.FieldRequired.NotRequired)
Set the Save and/or Submit URLs if you want users to send their data to your system (note: the web server receiving the submitted data can be any kind of page that is configured to parse a standard HTML submit event).
objQFE.SaveURL = "http://localhost/SaveForm.aspx"
objQFE.SubmitURL = "http://localhost:59536/SubmitForm.aspx"
Run the Quik! Forms Engine and return the result to an array list
Dim arrFiles As ArrayList = Nothing
arrFiles = objQFE.Execute
...
If objQFE.Results.ErrorFlag Then
MessageBox.Show("Error: " & objQFE.Results.Message)
Else
'Do something to show the HTML file to the user – e.g. Response.Redirect or Response.write
End If
...