I am trying to follow along while modifying the code to reflect my app location which is
“Corrections.2016” and it all seems to work fine until I try to do the custom form
creation, which when submitted takes me to an "about blank” page. Any thoughts on
what I did wrong?
#if("$!targetDocName" != '' && $xwiki.exists($targetDocName))
{{warning}}The target document already exists. Please choose a different name, or [[view
the existing document>>$targetDocName]]{{/warning}}
#elseif("$!targetDocName" != '')
{{warning}}You don't have permission to create that document{{/warning}}
#end
{{html}}
<form action="" id="newdoc" method="post">
<div>
<input type="hidden" name="parent"
value="${doc.fullName}"/>
<input type="hidden" name="template"
value="Corrections.2016.2016Template"/>
<input type="hidden" name="sheet" value="1"/>
<input type="hidden" name="spaceName"
value="Corrections.2016"/>
Code Section: <input type="text" name="docName"
value="Enter the code section here" class="withTip"
size="50"/>
<span class="buttonwrapper"><input type="submit"
value="Create this code section" class="button"/></span>
</div>
</form>
{{/html}}
Regards,
Jesse Bright