#################################### # # # ext: th_mailformplus # # # # by: Dev-Team # # email: dev@typoheads.at # # www: www.typoheads.at # # # # donations welcome :) # # # #################################### ################################################ ############# ATTENTION ######################## # read this section when using multipage-forms # # # showing different forms depending on user selection # ################################################ > [2] -> [4] \ [1] > [6] > [3] -> [5] / [1] ... depending the user selection the next step is [2] or [3] make sure that: - each form has a form-start-tag beginning with "
" - fieldnames are enclosed by " eg. Dependancy on JavaScript for multipage-forms: - only works with JavaScript enabled by default. - works without JavaScript by using plugin.th_mailformplus.multipage_without_js = 1 (see example below) In order you do not want to write the tag This is where the automatic generated JS function and hidden fields are written. If plugin.th_mailformplus.multipage_without_auto_hidden = 1 is set, the ###ADDITIONAL_MULTIPAGE### marker will not contain the inactive steps and therefore, the values from other pages will have to be set manually in the step-templates by input type=hidden. this will result in more work for creating the HTML template, but removes CSS dependancy and renders a "cleaner" HTML (no xform tags). If plugin.th_mailformplus.multipage_without_js = 1 is set, the ###ADDITIONAL_MULTIPAGE### marker will not contain JavaScript functions, since browsing between pages is expected to be realized by respectively (see example below). ###curStep### ... current step shown ###maxStep### ... total number of steps when using multipage forms with conditions be sure not to use this marker because the total amount of steps can not be determined at runtime. ###link_nextStep_start### ... start-tag for next page ###link_nextStep_stop### ... end-tag for next page ###link_prevStep_start### ... start-tag for previous page ###link_prevStep_stop### ... end-tag for previous page ###link_reload_start### ... start-tag for submitting form but stay on the same step ###link_reload_stop### ... end-tag for submitting form but stay on the same step ###submit_nextStep### ... name="" attribute next step (input type="submit" requires TS multipage_without_js = 1) ###submit_prevStep### ... name="" attribute prev step (input type="submit" requires TS multipage_without_js = 1) ###submit_reload### ... name="" attribute reload (input type="submit" requires TS multipage_without_js = 1) settings for file upload defined in TS: ###[name of upload field]_fileTypes### ... allowed filetypes eg. jpg,gif,pdf ###[name of upload field]_fileSize### ... maximum allowed filesize per file ###[name of upload field]_numberOfAllowedFiles### ... maximum number of files that can be uplaoded with this field ###[name of upload field]_numberOfUploadedFiles### ... number of currently uploaded files via this field ###[name of upload field]_numberOfRemainingFiles### ... number of remaining files that can be uploaded ############################################### ############################################### ## EXAMPLE ## ############################################### ########################################### # step 2 and step 3 (universty) are the same ########################################### ###STARTBLOCK### ###ENDBLOCK### ###STARTBLOCK### ###ENDBLOCK### ###STARTBLOCK### ###ENDBLOCK### ###STARTBLOCK### ###ENDBLOCK### ###STARTBLOCK### ###ENDBLOCK### Form was submitted (Receiver): surname: ###surname### email: ###email### education: ###education### job: ###job### picture: ###picture### ---------------------- Form was submitted (Receiver):