FormSubmissionHanlders getting form module title?

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.

This forum is for discussing mojoPortal development

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.

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.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/24/2011 3:17:06 PM
Gravatar
Total Posts 42

FormSubmissionHanlders getting form module title?

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

6/27/2011 7:55:13 AM
Gravatar
Total Posts 18439

Re: FormSubmissionHanlders getting form module title?

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

7/6/2011 10:51:33 AM
Gravatar
Total Posts 42

Re: FormSubmissionHanlders getting form module title?

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.

-st

 

You must sign in to post in the forums. This thread is closed to new posts.