Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Why does my show/hide work on edit but not display?

    The date box will appear when select is yes, but will not display on the saved form, why? FYI - I can not use script in the head only body, cause app that imports the form will strip it out.

    <td height="0" bgcolor="#bbccdd" width="247">
    <div align="left">
    <select name="legalnotified" onChange="if(this.value=='Yes'){LegalNot.style.visibility='';}else{LegalNot.style.visibility='hidden ';}">
    <option value="Yes">Yes</option>
    <option value="No" selected>No</option>
    </select>
    <span align="left" id="LegalNot" style="visibility:hidden"> <font face="Arial, Helvetica, sans-serif" size="2">&nbspDate:
    <input type=text name="c_legaldate" size=11 maxlength=10 onChange="aT(this)">
    </font> </span> </div>
    </td>

    Thanks

  • #2
    Regular Coder
    Join Date
    Jan 2003
    Posts
    867
    Thanks
    4
    Thanked 8 Times in 8 Posts
    "but will not display on the saved form"

    I don't understand what that means. The code you posted either shows or hides the date box depending on whether the dropdown says yes or no, respectively. Where is your error?

  • #3
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The code is from a custom html form imported into Lotus Quickplace, and when the form is submitted/saved the diplayed version will not show the box unhidden by selecting "yes".

  • #4
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Anyone got a clue on why the hide/show element doesnt diplay on saved form??

    Thanks

  • #5
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so let me get this straight, after a user submits the for (document.formname.submit()), the functionality of your dropdown is useless?

  • #6
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Basically, except the submit function is Lotus defined, another piece of info is that upon editing a saved form, the unhidden fields will not show even if yes was previously saved. A form reload would have to be done in the header in that case? I am not sure if there is a solution to either problem, not being able to write script in the <head> sucks...

    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •