This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.
Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.
Before posting questions here you might want to review the developer documentation.
I love that Joe introduced FormSubmissionHandlers; it's opened the doors on how we leverage our sites to collect and distribute information. I am working on one project currently that needs the Form modules title. Anyone have examples of code where they have done this?
-st
Hi Steve,
You could get the module like this:
WebForm form = new WebForm(e.ResponseSet.FormGuid); Module m = new Module(form.ModuleGuid);
then you can get the title as a property on the Module.
Best,
Joe
Thanks Joe
I was looking at the GetFormByUrl as well. Saw that it has the module id in the query string. I initially approached this problem using the module Id in the querystring of the view submission url. But your solution is better (less coding!). For this particular problem I needed the module title to link a form with an external management tool: Here's the code:
WebForm webForm = new WebForm(e.ResponseSet.FormGuid); Module module = new Module(webForm.ModuleGuid); string moduleTitle = module.ModuleTitle;
Works perfectly. Thanks for the help.