To add a hidden field to a form in FP
Select the form on the page and right click for Form Properties Advanced Add
- enter your field name and value
Or in Code view add
<input type="hidden" name="xxxx" value="yyy">
To display it on the confirmation page just add the field name as a confirmation Field
| I am trying to place a value in a hidden field in the submit form and then
| see that value in the confirmation page.
|
| Dave
|
|
| | > Dave,
| > not sure I understand the question - can you explain?
| >
| > --
| > Cheers,
| > Jon
| > Microsoft MVP - FP
| >
| > Dave wrote:
| > > There's a story about if you teach them how to fish...
| > >
| > > Can you drop a quick hidden field in the submit and confirm forms?
| > >
| > > Dave
| > >
| > >
| > > | > >> PS - I put a quick demo up here
| > >>
http://www.roksteady.net/dave.htm
| > >>
| > >>
| > >> --
| > >> Cheers,
| > >> Jon
| > >> Microsoft MVP - FP
| > >>
| > >> Jon Spivey wrote:
| > >>> Hi Dave,
| > >>>
| > >>> Yes I see an issue - this line
| > >>> var a = document.getElementId("comments");
| > >>> should be
| > >>> var a = document.getElementById("comments");
| > >>>
| > >>> My fault - sorry

| > >>>
| > >>> whole script should be
| > >>> <script type="text/javascript">
| > >>> function showComments(s){
| > >>> if(!document.getElementById)return;
| > >>> var a = document.getElementById("comments");
| > >>> a.style.display=(s==true)?"block":"none";
| > >>> }
| > >>> function hideComments(){
| > >>> if(document.getElementById){
| > >>> document.write("<style>#comments{display:none;}</style>");
| > >>> }}
| > >>> hideComments();
| > >>> </script>
| > >>>
| > >>>
| > >>>
| > >>> Dave wrote:
| > >>>> Hi Jon - for a starter thanks for the repsonse.
| > >>>>
| > >>>> This is what I have and I get script errors. Do you an issue here?
| > >>>>
| > >>>> <html>
| > >>>>
| > >>>> <head>
| > >>>> <script type="text/javascript">
| > >>>> function showComments(s){
| > >>>> if(!document.getElementById)return;
| > >>>> var a = document.getElementId("comments");
| > >>>> a.style.display=(s==true)?"block":"none";
| > >>>> }
| > >>>> function hideComments(){
| > >>>> if(document.getElementById){
| > >>>> document.write("<style>#comments{display:none;}</style>");
| > >>>> }}
| > >>>> hideComments();
| > >>>> </script>
| > >>>> <meta http-equiv="Content-Type" content="text/html;
| > >>>> charset=windows-1252"> <title>New Page 1</title>
| > >>>> </head>
| > >>>>
| > >>>> <body>
| > >>>>
| > >>>> Show comments <input type="checkbox"
| > >>>> onclick="showComments(this.checked);">
| > >>>>
| > >>>> <div id="Comments">
| > >>>> <textarea rows="4" cols="20"> Place a comment here
| > >>>> </textarea>
| > >>>> </div>
| > >>>>
| > >>>> </body>
| > >>>>
| > >>>> </html>
| > >>>> | > >>>>> Hi Dave,
| > >>>>>
| > >>>>> I don't think FP can help you with this but it should be easy
| > >>>>> enough to roll your own. Start by putting your comments field in
| > >>>>> a div like this <div id="Comments">
| > >>>>> <textarea......
| > >>>>> </div>
| > >>>>>
| > >>>>> Now add a checkbox for your yes answer
| > >>>>> Show Comments <input type="checkbox"
| > >>>> onclick="showComments(this.checked);">
| > >>>>>
| > >>>>> And add some javascript to the head of your page
| > >>>>> <script type="text/javascript">
| > >>>>> function showComments(s){
| > >>>>> if(!document.getElementById)return;
| > >>>>> var a = document.getElementId("comments");
| > >>>>> a.style.display=(s==true)?"block":"none";
| > >>>>> }
| > >>>>> function hideComments(){
| > >>>>> if(document.getElementById){
| > >>>>> document.write("<style>#comments{display:none;}</style>");
| > >>>>> }}
| > >>>>> hideComments();
| > >>>>> </script>
| > >>>>>
| > >>>>> --
| > >>>>> Cheers,
| > >>>>> Jon
| > >>>>> Microsoft MVP - FP
| > >>>>>
| > >>>>>
| > >>>>> ThDave wrote:
| > >>>>>> Where do I start?
| > >>>>>>
| > >>>>>> Are there wizards built into FP2003 to help with this, or is this
| > >>>>>> JavaScript I need to find, or is this dynamic code that is
| > >>>>>> available in FP2003?
| > >>>>>>
| > >>>>>> Thanks
| > >>>>>>
| > >>>>>> Dave
| >
| >
|
|