ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Changing status non-manually

May 22, 2012 9:46pm

Subscribe [2]
  • #1 / May 22, 2012 9:46pm

    ChiefAlchemist

    913 posts

    In a nut shell…

    User uploads one or more files via a Safecracker form. (Default) Status = Uploaded.

    When they’re done they hit a button for Next (or whatever).

    The Next page relists the uploaded files for review.

    The user can delete and when done then Submit the files for Review. At this point I want to change the status to Review. But I don’t want to do it manually. I want the code behind the Review Submit to handle it automatically.

    But how?

  • #2 / May 23, 2012 6:02am

    John St-Amand

    865 posts

    Sounds like you may be talking about two safecracker forms chained together perhaps, rather than just one? Pass the entry ID from the upload SC form, which sets initial status of entry to “uploaded”. Second form loads entry on basis of passed entry id via url, and has its own hidden status field to change the submitted entry status to “review”?

    I’ve not done what you’re trying to do, but this would probably be my way to try it.  Bound to be other ideas out there.

    Quick question - why the need for the “uploaded” status in the initial form submission?  Could a user come back later or something to finalize their submission to move it to the review phase?  If not, perhaps it’s really just one form broken into two screens with a single status setting of “review” at the end.

    Hope this line of thinking helps.

  • #3 / May 23, 2012 9:05am

    ChiefAlchemist

    913 posts

    Hey John

    Thanks for the input. Yeah, that’s about all I could come up with as well. But that just seems crazy to me…form…submit…form…submit. Automated or not it feel “dirty” and “cheap” to me. Certainly EE has to have something else, yes?

    Re: Uploaded vs Submitted (or whatever I said previously)

    I thought about that too. But I’m leaving the door open in the event there is eventually customer feedback for “Just because I upload doesn’t mean I want to submit all immediately”. (Also see below.)

    So I’m going to upload and default to Status = Uploaded. Then there’s the (traditional) double check step. And then the formal submit when I want to update the status.

    I also considered the status starting as “Submitted” and then letting the user manually step back to Uploaded for the exceptions they want to hold back. However, if the Step 2 is entries Status = Submitted and they submit now and then want to do more in 2 hours before the admin can address the first round of submitted, then the first round is still going to be listed when they go to submit the second round.

    Best I can tell, for the optimal UX I need multiple statuses, and therefore a way to change them.

     

  • #4 / May 23, 2012 10:23pm

    ChiefAlchemist

    913 posts

    fyi John - This looks promising

    http://devot-ee.com/add-ons/external-entries

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases