Looks like a slow day on the Forum. That of course is about to change.
I have been working with Form Helper to modify two custom fields of a form. The changes take place, but when I try and view the changed entry in the comments/title_url page, nothing shows up except the comment window. A view in the CP shows that the data is still all there, but for some reason it won’t show up the same way a non-edited entry would.
I have attached the form helper template that I created so you can see the code. I hope you can assist in bringing this information back to view.
If you check out the entries through the CP, you’ll probably find that any entries submitted through that form have no category and an incorrect status.
Let me explain what I am doing in greater detail and you can see if maybe there is something else that may be causing the problem.
I have a web form called request that a member must log in to use. They can enter data for a request that uses about 15 custom fields. That submission generates an email with a link to the new entry to a moderator. The moderator opens this file in the “edit_request” form. This is the document I sent to you above. There are only two fields that need to be changed here: the author field and the status.
Submitting this form should allow it to be viewed in the comments template, but this is where it flakes out. I can view the data in a “summary view” template but when I open it in the comments template it breaks. It is funny because the fresh entries open without difficulty in the comments template, but edited ones do not. I have attached the comments template just in case.
I don’t want to overstate anything, but in my book you are a genius.
Haha, that’s makes ONE of you
I noticed that you did not have the status parameter in your entries loop, and, in theory, you would think that it will not filter entries by status… right?
Wrong. If the status parameter is not there, it will only show OPEN by default
If you’re creating an edit form on the Comments template or anywhere for that matter, those loops need to be around it
If you wanted to just edit one field or something, you could actually stuff your EDIT code in with the comments template weblog:entries loop with only this loop:
The more I work on this, the better it gets. I now have the code in place and working but the drop down button defaults to Open even though the record shows that the status changes. Is there a coding way to indicate the current status in the drop down?