Contact Form Example
<form action="/infomaxim/json/saveform.asp" class="ajax-form" data-message-class="colors-e background-95 border heading" method="post" novalidate="novalidate">
<input name="form_name" style="display: none" type="hidden" value="form_requests" />
<input name="table_name" style="display: none" type="hidden" value="aurora_customers" />
<input name="table_name" style="display: none" type="hidden" value="aurora_case" />
<input name="aurora_case_type_id" style="display: none" type="hidden" value="1" />
<input name="form_action" style="display: none" type="hidden" value="insertExec" />
<div class="row">
<div class="col-md-6 control-group">
<div class="alt-placeholder">
Name</div>
<input data-validation-required-message="Please fill the required field." name="aurora_customers_firstname" placeholder="Name" required="" size="40" type="text" value="">
<div class="help-block">
</div>
</div>
<div class="col-md-6 control-group">
<div class="alt-placeholder">
Email</div>
<input data-validation-required-message="Please fill the required field." name="aurora_customers_email" placeholder="Email" required="" size="40" type="email" value="">
<div class="help-block">
</div>
</div>
<div class="col-md-12 control-group">
<div class="alt-placeholder">
Message</div>
<textarea data-validation-required-message="Please fill the required field." name="aurora_case_detail" placeholder="Message" required=""></textarea>
<div class="help-block">
</div>
</div>
<div class="col-md-12 form-actions">
<input class="button" type="submit" value="Send"> </div>
</div>
</form>
Basic Requirements
- Form action
action="/infomaxim/json/saveform.asp" - Form name
<input name="form_name" style="display: none" type="hidden" value="form_requests" /> - Table name
<input name="table_name" style="display: none" type="hidden" value="aurora_customers" /> - Form action
<input name="form_action" style="display: none" type="hidden" value="insertExec" /> - Form fields – name must be field name
<input data-validation-required-message="Please fill the required field." name="aurora_customers_firstname" placeholder="Name" required="" size="40" type="text" value="">
Multi-type forms
Redirection
One a form is submitted in can optionally force redirection to another page.
This can be controlled from the FORM using the form_redirect field name with a value of the target URL.
If this field is not present the form handler will use the do_redirect parameter passed to the function, as follows:-
PublicForm({do_redirect})
The redirection is also controlled by the force_redirect variable, which is set to 1 when the PublicForm function is called.
2 redirects to aurora_dynamic, and is mostly used internally within the Infomaxim admin.
3 does no redirection
4 redirects to aurora_data_index_dynamic
If this value is not set, the form will redirect as follows:-
If the form was storing a child record, it will redirect to aurora_linked
If the step variable is set the form will reload the current edit controller and try to redirect to the corresponding tab
If all the above are false, the form will redirect to aurora_data_index_dyanamic.
In each case, a set of parameters are persisted from the form post to the redirection URL.
Purpose
Report authors can create reports which generate forms using a drag and drop authoring tool which enables:-
Fields – any field included in the report query
Labels – a free text box
Boxes – a graphic element
Lines – a graphic elements – horizontal or vertical
Images – from the image library / or imported on demand
to be dropped onto an A4 form canvas. Each element will have properties enabling abstract elements to be linked to fields, or contain derived values such as the
Sums
Averages
Counts
Multiplication
Division
Percentage
The resulting form can be printed from a query which would populate the form.
Footer and Header