We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37392
    • 4 Posts
    Hi, everybody! I need help

    Мust be added to jot a few additional fields: prof, age.
    Doing so

    &customfields=`name,prof,age`


    chunk.form.inc.html
    <label for="name[+jot.id+]">Name: *<br />
    		<input tabindex="[+jot.seed:math=`?+1`+]" name="name" type="text" size="40" value="[+form.field.custom.name:esc+]" id="name[+jot.id+]" />
    		</label>
    		<label for="prof[+jot.id+]">Profession:<br />
    		<input tabindex="[+jot.seed:math=`?+2`+]" name="prof" type="text" size="40" value="[+form.field.custom.prof:esc+]" id="prof[+jot.id+]"/>
    		</label>
                    <label for="age[+jot.id+]">Age:<br />
    		<input tabindex="[+jot.seed:math=`?+3`+]" name="age" type="text" size="20" value="[+form.field.custom.age:esc+]" id="age[+jot.id+]"/>
    		</label>


    chunk.comment.inc.html
    <span class="jot-subject">[+comment.createdby:isnt=`0`:then=`<b>`+][+comment.createdby:userinfo=`username`:ifempty=`[+comment.custom.name:ifempty=`[+jot.guestname+]`:esc+]`+][+comment.createdby:isnt=`0`:then=`</b>`+] </span> 
    (<span class="jot-poster">[+comment.createdon:date=`%d.%m.%Y`+])</span>
    <br /> [+comment.custom.prof:ifempty=` -`+] 
    <br />[+comment.custom.age:ifempty=` -`+]


    It works, but when I click to edit the comment and changing age and profession, the changes are not saved. In other fields there are no problems, only with added. I can anyone help?

    Version Modx: Evo 1.0.4