Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm new to Umbraco Contour, but after just 1 hour I have figured out how most things work and I must say that it's worth every cent! Wonderful add-on! Great job!
Now to my question:
I'm working on a solution where I will have the same form on 8 different pages on my site.
The pages represent people, so let's say that I'm on Brenda Oswalds's page, users can use the form to ask Brenda a question. If I'm on Kevin Smith's page, the user will use the form to ask Kevin a question.
On submit the form info is saved as an Umbraco page. I've seen that I can specify a location where I want the new page to be saved (the "where to save" parameter).
Is it possible to set a more dynamic value for "where to save", something like (pseudo code): save the new page as a subpage to the page where the form instance is currently on?
If that's not possible, my other option will be to create 8 separate forms with 8 separate workflows, each with its own "where to save" parameter value. I just thought I'd check before I go about creating all these forms.
You could just create a custom workflow that handles this I imagine. Maybe it could read from a property from the document type of the current page that tells it what the parent ID you want to save to is?
Yes, it looks like a custom workflow is the only way to accomplish this. I'm not sure if I have the time to dive into that - I have a tight deadline to meet.
Thanks for yor reply!
Haha, now I have a new project where I need the workflow to do exactly this! You didn't happen to work on a custom workflow that accomplishes it did you? If not, is the source available for the existing workflows so we can modify them to suit our needs? It would be a shame if we had to rebuild this workflow from scratch just to modify a single setting. Any of the Contour developers can chime in on this?
Actually after some digging around I found this link:
So I tweaked it out and just changed one of the settings to be a textfield instead:
Just set the "Where to Save" setting to [#pageID] and it will save it to the current page! I hope this saves you some time :-)
That link was actually supposed to be http://codeviewer.org/view/code:ff4
Today is not my day! Also, how do I edit/delete posts on here? I don't see a button for that. Anyway, the REAL correct link is:
The site I'm working on is a campaign site so production speed goes before long term solutions (quick'n'dirty). Therefore I decided not to dig any deeper into custom workflows. I have now set up eight different forms, which is of course not the optimal solution, but once they're up it works like it should. I used the dictionary for storing common texts (the "thank you text" and tooltips) and created a template for my form. That way I could create all the forms and the workflows quite fast.
Your solution is of course much better and it's great that it's here in the forum for future reference for others to look at.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted