Developer forum

Forum » Feature requests » Item Creator - Confirm Page is limited!!

Item Creator - Confirm Page is limited!!

Jacob Storgaard Jensen
Reply

Hi guys,

I'm fooling around with the new Item Creator - The field: "Confirmation page" is limited to a page that you select in the site tree. In the forms module you are able to write something like: /Home.aspx?Contact=success which I use to show a slide down message on the forms page instead of going to a new page... Please make this field behave the same as in the Forms module (for data lists).

 


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

You should use the value of @ItemCreator:Edit.Status to check if an item has been created and then use @ItemCreator:Item.* values to render (part of the item):

@if (GetString("ItemCreator:Edit.Status") == "ITEM_CREATED") {
    <div class="alert alert-success">
        Item @GetValue("ItemCreator:Item.Text") created. Thank you!
    </div>
} else {
    // Render form
}

 

When using the Confirm page setting, the id of the created item will be added to the confirm page url, e.g. /Thank-you?ItemID=Case:13, and then you can check if this query string parameter exists and render the newly created item using an item publisher (or using Razor) on the confirm page.

Best regards,
Mikkel

Votes for this answer: 1