Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



PreviousPrevious NextNext

Rakhi Sandhu 19.Apr.13 07:50 AM a Web browser
Applications Development 7.0.3 All Platforms

We have a web form with many radio buttons, each radio button has many options. Each radio button has “Automatically refresh fields” selected. This is to enable us to show / hide additional sections on the form based on what is selected in the radio button.

We have Javascript in the onClick event for each radio button that when the user selects an option from “this” Radio Button, any value selected in Radio Button “B”, “C”, “D” is removed (and vica versa).

We have a “Submit” button that performs a @Command([FileSave]);@Command([CloseWindow]).

We have a LotusScript “WebQuerySave” agent that performs additional validation and populates text fields with error messages (e.g. you can’t have this option selected without entering details in another field). If any errors are found, the form is redisplayed in edit mode (via print statement on the console - Print "[/" & db_current.FilePath & "/0/" & doc.UniversalID & "?editdocument]" ).

If there are no errors, the form is submitted.

What we are finding is that our JS code is successfully changing the values of the radio buttons, unless the “Submit” button has been selected and the “WebQuerySave” agent has run.

What appears to happen is that our changes made via JS (e.g. document.forms[0].RadioButtonField[i].checked = false) are lost when we click on the “Submit” button as when the form refreshes it has brought the previously selected value back.

It’s almost like we need to send the change back to the server before the Submit takes place

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite