##formatter.TextRender() ##this.SubView(##request.SubStyle) ##include(Defaults) ##local.Define(Title)##leg.ZONESOPAC.MakePreInscription.Title ##local.Define(Advice) ##if value.Completed ##leg.ZONESOPAC.MakePreInscription.CompletedAdvice ##else ##leg.ZONESOPAC.MakePreInscription.Prompt ##endif ##local.define(PageHeaderScripts) /* */ ##local.define(SuggestionForm)
##this.StyleSetForForm ##local.define(StringField) ##value.Request.category name="Request.##formfield.Data(##local.Name)" ##else name="Request.##formfield.__Label()" ##endif id="Request.##formfield.__Label()" ##if value.IsString(##local.RPath) value=##value.AsJScriptLit(##local.RPath) ##else ##if formfield.IsDefined(Default) value="##formfield.Default" ##else value="" ##endif ##if formfield.IsDefined(Lock) readonly="readonly" ##endif ##endif /> ##local.define(SexCode) ##local.define(DateCode) ##local.define(LanguageCode) ##local.define(PostCode) ##local.define(Dependence) ##local.define(OccupationCode) ##local.define(InstituteCode) ##local.defineByRender(InstituteCodeShown)1 ##local.define(DivisionCode) ##local.defineByRender(DivisionCodeShown)1 ##local.define(TextCode) ##local.define(SubSelect) ##local.define(Init) ##sessioncfg.with(form,DB.Config.Circ.PreInscriptionForm) ##form.foreachIn(formfield,"") ##local.defineByRender(RPath)Request.##formfield.__Label() ##if sessioncfg.ZONES.GetOccupationsOnPreinscription ##local.defineByRender(OccupationsAllowed)TABOCC 01 TABOCC 02 TABOCC 03 TABOCC 04 TABOCC 07 TABOCC 08 TABOCC 10 TABOCC 11 TABOCC 15 TABOCC 16 ##if formfield.IsEqual(Validation,Occupation) ##local.defineByRender(OccupationRPath)##local.RPath ##local.defineByRender(OccupationSelector)#Request\\.##formfield.__Label() ##endif ##if formfield.IsEqual(Validation,Division) ##local.defineByRender(DivisionRPath)##local.RPath ##local.defineByRender(DivisionSelector)#Request\\.##formfield.__Label() ##endif ##if formfield.IsEqual(Validation,Institute) ##local.defineByRender(InstituteRPath)##local.RPath ##local.defineByRender(InstituteSelector)#Request\\.##formfield.__Label() ##endif ##endif ##local.Init ##local.defineByRender(InstituesDetailsPath)Institutes.##value.Request.division ##sessioncfg.with(form,DB.Config.Circ.PreInscriptionForm) ##form.foreachIn(formfield,"") ##local.define(FieldVisibility)Visible ##local.defineByRender(RPath)Request.##formfield.__Label() ##if formfield.IsDefined(Visibility) ##if value.Request.category ##if formfield.ContainsIgnoreCase(Visibility,##value.Request.category) ##else ##local.defineByRender(FieldVisibility) ##endif ##else ##local.defineByRender(FieldVisibility) ##endif ##endif ##if formfield.IsEqual(Validation,Division) ##if value.IsDefined(##local.OccupationRPath) ##local.defineByRender(MapPath)Divisions.##value.Request.category ##if value.IsMap(##local.MapPath) ##else ##local.defineByRender(FieldVisibility) ##endif ##else ##local.defineByRender(FieldVisibility) ##endif ##endif ##if formfield.IsEqual(Validation,Institute) ##if value.Request.division ##local.defineByRender(MapPath)Institutes.##value.Request.division ##if value.IsMap(##local.MapPath) ##else ##local.defineByRender(FieldVisibility) ##endif ##else ##local.defineByRender(FieldVisibility) ##endif ##if value.IsDefined(##local.OccupationRPath) ##else ##local.defineByRender(FieldVisibility) ##endif ##endif ##if formfield.IsEqual(Validation,ID) ##if value.IsDefined(##local.OccupationRPath) ##else ##local.defineByRender(FieldVisibility) ##endif ##endif ##if local.IsEqual(FieldVisibility,Visible) ##endif /**/
##if formfield.IsEqual(Mandatory,1) * ##else ##endif ##if formfield.IsEqual(Validation,ID) ##local.defineByRender(LabelPath)Label.##value.Request.category ##formfield.QualData(##local.LabelPath) : ##else ##if formfield.IsEqual(Validation,Division) ##local.defineByRender(LabelPath)Label.##value.Request.category ##formfield.QualData(##local.LabelPath) : ##else ##formfield.QualData(Label) : ##endif ##endif ##local.define(InvalidLegend)##leg.ZONESOPAC.MakePreInscription.InvalidFieldContent ##if formfield.IsEqual(Validation,String) ##local.StringField ##endif ##if formfield.IsEqual(Validation,ID) ##local.defineByRender(IDCodeShown)1 ##local.StringField ##endif ##if formfield.IsEqual(Validation,None) ##local.StringField ##else ##if formfield.IsEqual(Validation,phone) ##local.StringField ##else ##if formfield.IsEqual(Validation,email) ##local.StringField ##endif ##endif ##endif ##if formfield.IsEqual(Validation,SexCode) ##local.SexCode ##endif ##if formfield.IsEqual(Validation,Date) ##local.DateCode ##endif ##if formfield.IsEqual(Validation,LanguageCode) ##local.LanguageCode ##endif ##if formfield.IsEqual(Validation,AccountCode) ##local.Dependence ##endif ##if formfield.IsEqual(Validation,PostCode) ##local.PostCode ##local.define(InvalidLegend)##leg.Expand(ZONESOPAC.MakePreInscription.InvalidPostCodeContent,MaxLen,##sessioncfg.DB.Config.Circ.PreInscription.MaxPostCodeLength) ##endif ##if formfield.IsEqual(Validation,Occupation) ##local.OccupationCode ##endif ##if formfield.IsEqual(Validation,Institute) ##local.InstituteCode ##endif ##if formfield.IsEqual(Validation,Division) ##local.DivisionCode ##endif ##if formfield.IsEqual(Validation,text) ##local.TextCode ##endif

##formfield.Dump()
##leg.ZONESOPAC.MakePreInscription.MandatoryFieldsPrompt
 
##local.define(ButtonCaption)##leg.ZONESOPAC.MakePreInscription.Submit ##local.define(ButtonTip)##leg.ZONESOPAC.MakePreInscription.SubmitTIP ##local.define(ButtonHref)javascript:submitForm() ##local.define(ButtonID)submitButton ##local.ButtonFMT ##local.define(ButtonClass)button_blue ##local.define(ButtonCaption)##leg.ZONESOPAC.MakePreInscription.Reset ##local.define(ButtonTip)##leg.ZONESOPAC.MakePreInscription.ResetTIP ##local.define(ButtonHref)javascript:resetForm() ##local.define(ButtonID)buttonBrowseSearchClr ##local.ButtonFMT
##local.define(SendConfirmationEmail)
Thank you!
Your registration request has been submitted successfully. A confirmation email will be sent to your email address. ##sessioncfg.With(emailConf,ZONES.Portal3.Preinscription.Config)
##local.Define(LocalContent) ##helpcontext.addHelp(Toolbar) ##if value.Completed ##helpcontext.addHelp(MakePreInscriptionComplete) ##if value.Results.error_code ##local.defineByRender(ErrorText)##sessioncfg.MapLegendThroughTable(##value.Results.error_code,"DB.Config.ZONESERVICES.ErrorMessageMap") ##local.ErrorText ##local.SuggestionForm ##else ##if sessioncfg.ZONES.GetOccupationsOnPreinscription ##local.SendConfirmationEmail ##else ##leg.ZONESOPAC.MakePreInscription.ThankyouSuccess ##endif ##endif ##else ##helpcontext.addHelp(MakePreInscriptionForm) ##local.SuggestionForm ##endif ##local.Define(Content)
##local.Advice
##local.LocalContent
##include(Body)