Testing flex form: Difference between revisions

From Tsadra Foundation Advanced Contemplative Scholarships
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Tag: Blanking
 
(72 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<form action="email" id="TfacsSubmission" email no_submit_on_return mwreturn="Flex-Form Thank You!">
<_email template="SubmissionEmailTemplate"></_email>
<_create mwwrite="Admin:{{CURRENTTIMESTAMP}} [firstname] [lastname]" mwtemplate="Submission" />
{| class="smwtable-clean th-top-right border"
|-
! <label for="firstname">Name {{r|*}}</label>
| <input style="width: 50%;" type="text" name="firstname" placeholder="first name" required="required" />
<input style="width: 50%;" type="text" name="lastname" placeholder="last name" required="required" />
|-
! <label for="birthdate">Date of birth {{r|*}}</label>
| <input type="date" name="birthdate" value="{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}" min="1900-01-01" max="2999-12-31" required="required" />
|-
! <label for="birthcountry">Country of birth {{r|*}}</label>
| <select name="birthcountry" selected="" placeholder="select" options="{{ListOfCountries}}" />
|-
! <label for="street">Address {{r|*}}</label>
| <input style="width: 100%;" type="text" name="street" placeholder="street address" required="required" /><br>
<input style="width: 100%;" type="text" name="street2" placeholder="address line 2" /><br>
<input style="width: 50%;" type="text" name="city" placeholder="city" required="required" /><input style="width: 50%;" type="text" name="stateprov" placeholder="state / province" /><br>
<input style="width: 50%;" type="text" name="postalcode" placeholder="zip/postal code" required="required" /><select style="width: 50%;" name="country" selected="" options="{{ListOfCountries}}" required="required" />
|-
! <label for="email">Contact {{r|*}}</label>
| <input style="width: 100%;" type="email" name="email" placeholder="email" required="required" />
<input style="width: 100%;" type="tel" id="phone" name="telephone" placeholder="phone number" required="required" /><br>
Include [https://en.wikipedia.org/wiki/List_of_country_calling_codes#Ordered_by_code an international code] if applicable.
|}


<input type="submit" value="submit" />
</form>{{#widget:FlexForm.css}}
Account creation can be done automatically upon submit with API js gadget, by using first and last name fields for username, password can be randomized, email can be pulled from form also.

Latest revision as of 07:46, 2 May 2024