I've got a client interested in creating some web forms where they simply want to submit some information to other sites. As a good example, integrating a google mini to the site, directing the form submission to the search server? With the integration of the template, i can't seem to use any form variables. How would I approach this?
How do I create a simple non-database interacting web form in iMIS 15.1
Rather than programming
I guess I'd like to elaborate. I've got a client that wants to do what's shown below. Would it be possible to add HTML within the Telerek editor where you do something like this. Something simple, so he can do it? What you describe above is creating something "Hard-coded" within a web part, correct? He wants to create forms also without a significant programming background.
form action=http://someothersite.htm method="Post"
input type="text" name="Name"
input type="submit" name="Submit" value="Submit"
/form
As far as I'm aware, it is
As far as I'm aware, it is not possible to nest HTML form elements, and since the master page always places <form></form> tags around the page content, there is no way to do this from within a ContentHTML web part.
What you could do is create HTML pages for the forms he wants, and then tell him how to create pop-up links to those.
Basically, the HTML he would enter in the RadEditor would be something like
<a href="javascript: ShowDialog_NoReturnValue(gWebRoot + '/iMIS/SurveyPopupForm.html', null, 500, 500);">Click here to fill out our survey!</a>
SurveyPopupForm would have the correct form action, fields, etc.; you'd need one .html for each form they wanted to be able to pop up.
Something like the following
Something like the following should work:
protected override void OnPreRender(EventArgs e) {HtmlForm form = Master.FindControl("TemplateForm") as HtmlForm;
form.Action = http://some/other/page.html;
}