Question
Here is an excerpt from what I currently have from my NgCreate topic:
<form ...>
<input type="text" name="Subject">
.
.
.
<input type="hidden" name="templatetopic" value="NgTemplate" />
<input type="hidden"
name="formtemplate" value="NgForm" />
.
.
.
</form>
Now, NgForm has a field called SubjectLine, which I would like to populate with the value that the user puts into the form. Is this possible?
My original approach was to, instead of using 'formtemplate', try to create the META tags by hand in the 'templatetopic'. But after reading the
UrlParamInFormField , I gave up on that approach.
I did try to do what
PeterThoeny suggested in
UrlParamInFormField and was able to set default values:
<type="hidden" name="SubjectLine" value="MY SUBJECT">
but couldn't figure out how to pass one field into the other and tried a myriad of combinations but to no avail.
Thanks for anyone who can help!
Environment
--
AndrewJMirsky - 18 Dec 2003
Answer
Silly me! I am going to answer my own question....
The template form will pick up and match any input fields, hidden or otherwise. So buy changing the name in the input form to match the field in the form template like this :
<input type="text" name="SubjectLine">
The form got exactly the correct value!
Sorry for the errant post, but as I was writing the topic, I realized how it worked! Hope these code snypets help as that is something that I have found that is missing in some of the descriptions.