Hi fellow EE peeps, I stuck on a simple form using exp:channel:forms to update a timestamp on an entry:
{exp:channel:form channel="myentry" return="{current_url}" entry_id="16" require_entry="yes" }
<input type="hidden" name="a_timestamp" id="a_timestamp" value="{current_time format="%F %d, %Y - %g:%i:%s %a"}" />
<input class="button" type="submit" name="submit" value="Activate" />
{/exp:channel:form}
I get no errors but nothing entered in the field, I’ve set the permissions so that the user has the rights to add/edit all entries (will limit later) but i’m stumped. EE 6.2.5
Pete
Did you change the allowed format of the text field itself, changing it from “All” to number or something else? Is maximum characters being exceeded?
Second test, if you just hard-code anything (all numbers, all letters, etc) at all into your hidden input, does it save?
And just to cover all bases, verify the field name and input’s name attribute match.
Ok. so I tried to moving the code out side of any other code and hard coding the necessary vars, and still it won’t write to it I’ve pretty much exhausted any coding errors so its got to be a setting i’ve missed or miss set. If anyone have a step by step i could follow i’d be much appreciated I’ve added a few screenshots
thanks again everyone for your input.
So here’s what i’ve done so far:
1 created a new template with nothing but this in it
{exp:channel:form channel="subrecord" require_entry="NO" return="/home/" } <input type=”text” name=”title” id=”title” value=”Test Sub” /> <input type=”text” name=”url_title” id=”url_title” value=”test-sub” /> <input type=”text” name=”a_personid” id=”a_personid” value=”5” /> <input type=”text” name=”a_eventid” id=”a_eventid” value=”15” /> <input type=”text” name=”a_regdate” id=”a_regdate” value=”February 24, 2022 - 11:02:30 am” /> <input type=”text” name=”a_timestamp” id=”a_timestamp” value=”1” /> <input class=”button” type=”submit” name=”submit” value=”Register” /> {/exp:channel:form}
2 created a new channel called subrecord (see two attached setting screenshots)
3 I also update to the newest ee version 6.2.6
When I submit the form the page just reloads nothing written to the db and return address ignored
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.