We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10226
    • 412 Posts
    I have a custom template / forms... I have verified consistency of the labels and such. I have a field that does not carry over when you try to edit and another that will not save the data.

    These are from the examples (extremely modified) Yes I am using tables until I get everything situated then I am moving it to css smiley

    here is the comment chunk

    	<a name="jc[+jot.link.id+][+comment.id+]"></a>
    	<div class="jot-row [+chunk.rowclass+] [+comment.published:is=`0`:then=`jot-row-up`+]">
    		 <div class="jot-content">
    		   <table width="100%" border="0" cellpadding="4">
                     <tr>
                       <td colspan="3">Date: [+comment.custom.fdate+] </td>
                       <td><div class="jot-mod">
    			 [+jot.moderation.enabled:is=`1`:then=`
    				<a href="[+jot.link.delete:esc+][+jot.querykey.id+]=[+comment.id+]#jotmod[+jot.link.id+]" onclick="return confirm('Are you sure you wish to delete this comment?')" title="Delete Comment"><img src="[(base_url)]manager/media/style/MODx/images/icons/event3.gif" width="16" height="16" alt="Delete Comment" border="0" /></a>
    				[+comment.published:is=`0`:then=`
    				<a href="[+jot.link.publish:esc+][+jot.querykey.id+]=[+comment.id+]#jotmod[+jot.link.id+]" onclick="return confirm('Are you sure you wish to publish this comment?')" title="Publish Comment"><img src="[(base_url)]manager/media/style/MODx/images/icons/add.png" width="16" height="16" alt="Publish Comment" border="0" /></a>
    				`+]
    				[+comment.published:is=`1`:then=`
    				<a href="[+jot.link.unpublish:esc+][+jot.querykey.id+]=[+comment.id+]#jotmod[+jot.link.id+]" onclick="return confirm('Are you sure you wish to unpublish this comment?')" title="Unpublish Comment"><img src="[(base_url)]manager/media/style/MODx/images/icons/delete.png" width="16" height="16" alt="Unpublish Comment" border="0" /></a>
    				`+]
    			 `:strip+]
    			 [+jot.user.canedit:is=`1`:and:if=`[+comment.createdby+]`:is=`[+jot.user.id+]`:or:if=`[+jot.moderation.enabled+]`:is=`1`:then=`
    				 <a href="[+jot.link.edit:esc+][+jot.querykey.id+]=[+comment.id+]#jf[+jot.link.id+]" onclick="return confirm('Are you sure you wish to edit this comment?')" title="Edit Comment"><img src="[(base_url)]manager/media/style/MODx/images/icons/logging.gif" width="16" height="16" alt="Edit Comment" border="0" /></a>
       		 `:strip+]
    			 </div></td>
                   </tr>
                     
                     
                     <tr>
                       <td width="18%"> </td>
                       <td>Fed: </td>
                       <td colspan="2">[+comment.custom.meal+] </td>
                     </tr>
                     <tr>
                       <td> </td>
                       <td>Weight: </td>
                       <td colspan="2">[+comment.custom.weight+]</td>
                     </tr>
                     <tr>
                       <td> </td>
                       <td width="15%">Length: </td>
                       <td colspan="2">[+comment.custom.length+]</td>
                     </tr>
                     
                     <tr>
                       <td>Notes: </td>
                       <td colspan="3">[+comment.custom.notes+]</td>
                     </tr>
                   </table>
               
    	  </div>
    </div>


    and the form chunk

    <a name="jf[+jot.link.id+]"></a>
    [+form.error:isnt=`0`:then=`
    <div class="jot-err">
    [+form.error:select=`
    &-3=You are trying to re-submit the same post. You have probably clicked the submit button more than once.
    &-2=Your comment has been rejected.
    &-1=Your comment has been saved, it will first be reviewed before it is published.
    &1=You are trying to re-submit the same post. You have probably clicked the submit button more than once.
    &2=The security code you entered was incorrect.
    &3=You can only post once each [+jot.postdelay+] seconds.
    &4=Your comment has been rejected.
    &5=[+form.errormsg:ifempty=`You didn't enter all the required fields`+]
    `+]
    </div>
    `:strip+]
    [+form.confirm:isnt=`0`:then=`
    <div class="jot-cfm">
    [+form.confirm:select=`
    &1=Your comment has been published.
    &2=Your comment has been saved, it will first be reviewed before it is published.
    &3=Comment saved.
    `+]
    </div>
    `:strip+]
    <div class="sideBar"
    <form method="post" action="[+form.action:esc+]#jf[+jot.link.id+]" class="jot-form">
    	<fieldset>
    	<input name="JotForm" type="hidden" value="[+jot.id+]" />
    	<input name="JotNow" type="hidden" value="[+jot.seed+]" />
    	<input name="parent" type="hidden" value="[+form.field.parent+]" />
    	
    	[+form.moderation:is=`1`:then=`
    		<div class="jot-row">
    			<b>Created on:</b> [+form.field.createdon:date=`%a %B %d, %Y at %H:%M`+]<br />
    			<b>Created by:</b> [+form.field.createdby:userinfo=`username`:ifempty=`[+jot.guestname+]`+]<br />
    			<b>IP address:</b> [+form.field.secip+]<br />
    			<b>Published:</b> [+form.field.published:select=`0=No&1=Yes`+]<br />
    			[+form.field.publishedon:gt=`0`:then=`
    				<b>Published on:</b> [+form.field.publishedon:date=`%a %B %d, %Y at %H:%M`+]<br />
    				<b>Published by:</b> [+form.field.publishedby:userinfo=`username`:ifempty=` - `+]<br />
    			`+]
    			[+form.field.editedon:gt=`0`:then=`
    				<b>Edited on:</b> [+form.field.editedon:date=`%a %B %d, %Y at %H:%M`+]<br />
    				<b>Edited by:</b> [+form.field.editedby:userinfo=`username`:ifempty=` -`+]<br />
    			`+]
    		</div>
    	`:strip+]
    	
    	
    	<table width="100%" border="0" cellpadding="4">
          <tr>
            <td> <label for="fdate">Date
    		<input tabindex="[+jot.seed:math=`?+2`+]" name="fdate" type="text" size="10" value="[+form.field.custom.fdate:esc+]" />
    		</label></td>
            <td><label for="weight">Weight
    		<input tabindex="[+jot.seed:math=`?+2`+]" name="weight" type="text" size="10" value="[+form.field.custom.weight:esc+]" />
    		</label></td>
            <td>	<label for="length">Length
    	<input tabindex="[+jot.seed:math=`?+3`+]" name="length" type="text" size="10" value="[+form.field.custom.length:esc+]" />
    	</label></td>
          </tr>
          <tr>
            <td colspan="3"><label for="meal">Meal
    		<input tabindex="[+jot.seed:math=`?+1`+]" name="meal" type="text" size="40" value="[+form.field.custom.meal:esc+]" />
    		</label></td>
          </tr>
          <tr>
            <td colspan="3"><label for="notes">Notes
    	<textarea tabindex="[+jot.seed:math=`?+4`+]" name="notes" cols="50" rows="6">[+form.field.notes:esc+]</textarea>
    	    </label></td>
          </tr>
          <tr>
            <td colspan="3"><div style="float:right;width: 100px;"></div>
    	<input tabindex="[+jot.seed:math=`?+5`+]" name="submit" type="submit" value="[+form.edit:is=`1`:then=`Save`:else=`Submit`+]" />
    	[+form.edit:is=`1`:then=`
    		<input tabindex="[+jot.seed:math=`?+5`+]" name="submit" type="submit" value="Cancel" onclick="history.go(-1);return false;" />
    	`+] </td>
          </tr>
        </table>
    
    	</fieldset>
    </form>
    </div>


    Notes do not carry over and length is the one that does not show after posting

    Any ideas? Probably just missing a typo somewhere...

    Thanks!

    -- Fixed Length issue, also thought the jot call may be of help;

    [!Jot? &subscribe=`1` &pagination=`10` &customfields=`length,meal,weight,notes,fdate` &sortby=`fdate:a`  &debug=`1` !]
      • 4310
      • 2,310 Posts
      [+form.field.notes:esc+]

      Should that be
      [+form.field.custom.notes:esc+]

      ?
        • 10226
        • 412 Posts
        Probably so smiley

        I knew it was a "typo" lol

        Thanks smiley