?
Solved

Passing a vlaue of a checkbox from one form to another?

Posted on 2003-02-24
11
Medium Priority
?
251 Views
Last Modified: 2013-12-18
I am trying to develop an application in Notes that has a front-end form that is viewed on the Web, and the back-end is then emailed in Notes. I have the two forms and the web agent saves the data and then opens the emailed form with the data perfectly...here is my problem:

The Web front-end had Javascript that would toggle the display properties for several sections of questions based on a checkbox being checked. So, let's say if someone was signing up for a cell phone and pager...they would check those two options and only the questions relating to those two services would expand.

I was told that I need to change these boxes into Notes fields in order to pass the value of the checked boxes so that the back-end will display the same expanded sections. What would be the code to assign the value on the front-end? And how would I evaluate it on the back end to display those same divs on the back-end?

Thanks for your help. I am pretty new to the Notes environment and so I don't always see clearly.  ;o)
0
Comment
Question by:jgarth_wise
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 8010540
The same form can be mailed while saving the document, only thing is you have to enable store form in document (form property). So that the exact values as entered by user is mailed.

~Hemanth
0
 

Author Comment

by:jgarth_wise
ID: 8010622
It has to be two forms because the end user wants the email form in a different format (I know the functionality is no different, it is all cosmetic and the user could care less about functionality they just want it to look the way they are used to it - but still want the Web form in its format).

But even at that...if you pass the data on the same form, I want to have only the sections that were checked to be expanded/visible. There is a top section with generic user information to be filled out, and then there are five checkboxes(each option has a set of questions in their own <div> that apply to only them). So, I need to assign a value and not just toggle display. That way when the back form opens, the correct checkboxes would be checked and those sections expanded.

Does that make sense?
Thanks again for the extra eyes!!!
Jason
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 8010968
So this Checkboxes are not notes fields then ?

In the web form, create the notes fields for checkbox as hidden. Then refer to that field value in the mail script.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:jgarth_wise
ID: 8011101
They were originally written in javascript and sent as pass thru html.

So, you are saying make a hidden notes field. Leave the javascript checkboxes to do the expand collapse? But then how do I tie a value to the hidden fields based on the checkbox being checked?

Sorry to be a pest...just trying to make this work for the end user. Thanks for your insight.

Jason
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 8011228
No problem.

When you create Notes fields corresponding to HTML fields, during save domino will store the values in Notes fields. If The field data type is mismatched then you will get an error.

0
 

Author Comment

by:jgarth_wise
ID: 8011324
How do you make the html and Notes fields correspond? By name? Or is there something else that ties them together?

I guess I am not seeing it. If on the form I have a checkbox (html) called "ckCell"...how do I make a hidden field in Notes that is tied to the value of the html checkbox?
0
 

Author Comment

by:jgarth_wise
ID: 8011338
How do you make the html and Notes fields correspond? By name? Or is there something else that ties them together?

I guess I am not seeing it. If on the form I have a checkbox (html) called "ckCell"...how do I make a hidden field in Notes that is tied to the value of the html checkbox?
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 800 total points
ID: 8020459
Yes ByName, Create a text field called ckCell and leave it (If you are expecting more than one value, then check multivalue option)
0
 

Author Comment

by:jgarth_wise
ID: 8025286
So, are you saying that I create the hidden Notes field on both forms? Or just the back-end form?

Again, sorry to be asking what are probably dumb questions. I am still trying to learn the Notes enviroment. I thank you so much for your help!!! :o)
0
 

Author Comment

by:jgarth_wise
ID: 8057971
I went ahead and gave you the points for all you input. I still need an answer on my last cooment. Thank you for all of your help!!!  ;o)
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 8058045
Create the fields in the web form.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question