My question can best be described as follows:
1. I have a two page document (form)...PAGE A and PAGE B, which are considered subforms.
2. Page A is set to "Flowed - Top to Bottom" and has a total of 4 pages when rendered.
3. Page 1 of PAGE A contains a radio button group. Page 2 also contains a radio button group that should be part of the radio group on page one, but due to the design running over to a second page, it won’t fit.
4. Considering the above, I'm looking for a way to "merge" the two radio button sets into one, WHILE they remain on separate pages. i know you can merge exclusive radio button group that are on the SAME page, but I haven't figured how to do this when they reside on different pages. Initially, I got it to work by giving both radio groups the same name and setting to global binding, but this became an issue per item #5 below.
5. PAGE A also has an "Add" button that creates a new instance of PAGE A, when pressed. By having the radio button set to global binding, it automatically set the value of the radio groups whenever a new instance of the subform is/was created...which is to be expected.
The question now is....is there a way to merge two separate radio button group which are on separate pages, and still have them work properly as new instances of the subform are created?
Solved! Go to Solution.
Views
Replies
Total Likes
You probably can achieve this by writing script..
If you want to exclude two radio buttons that are in separate pages:
1) Change them to Checkboxes. and set the below properties..
Appearance: Solid Circle
Check Style: Circle.
This way they looks like you are using a radio button.
2) Write the script in the Click event of the Checkbox to uncheck the other checkbox in the second page.
Page2.CheckBox2.rawValue = 0; //(Or what ever value you want when it is unchecked.
3) Similarly write the code in the Click event of the checkbox in the second page.
Page1.CheckBox1.rawValue = 0; //(Or what ever value you want when it is unchecked.
4) Write the below code in the Initialize event of each checkbox , like below..
//Page1.CheckBox1 Initialize event
if(this.rawValue == "1"){ //(Or what ever value you want when it is checked.
Page2.CheckBox2.rawValue = 0;
}
//Page2.CheckBox1 Initialize event
if(this.rawValue == "1"){ //(Or what ever value you want when it is checked.
Page1.CheckBox1.rawValue = 0;
}
Thanks
Srini
Views
Replies
Total Likes
You probably can achieve this by writing script..
If you want to exclude two radio buttons that are in separate pages:
1) Change them to Checkboxes. and set the below properties..
Appearance: Solid Circle
Check Style: Circle.
This way they looks like you are using a radio button.
2) Write the script in the Click event of the Checkbox to uncheck the other checkbox in the second page.
Page2.CheckBox2.rawValue = 0; //(Or what ever value you want when it is unchecked.
3) Similarly write the code in the Click event of the checkbox in the second page.
Page1.CheckBox1.rawValue = 0; //(Or what ever value you want when it is unchecked.
4) Write the below code in the Initialize event of each checkbox , like below..
//Page1.CheckBox1 Initialize event
if(this.rawValue == "1"){ //(Or what ever value you want when it is checked.
Page2.CheckBox2.rawValue = 0;
}
//Page2.CheckBox1 Initialize event
if(this.rawValue == "1"){ //(Or what ever value you want when it is checked.
Page1.CheckBox1.rawValue = 0;
}
Thanks
Srini
Views
Replies
Total Likes
Are you saying your Radio Button Group does not overflow onto the next page?
If your Hierarchy is something like this
- PAGE A (subform that is flowed top to bottom)
- - Add Button
- - Radio Button Group
- - - Radio Button 1
- - - Radio Button 2
- - - Radio Button 3
...
- - - Radio Button 20
- PAGE B
then i would expect the Radio Button Group to overflow onto the next page i.e. from Page 1 to Page 2.
Views
Replies
Total Likes
Srini - very simple solution, thanks!!!
I didn't use the script on the "Initialize" event because the script on the "click" event did the job. It seems you were using the initialize event to fire the scirpt upon opening the file as a double check, correct? In most cases with my form, no boxes will be pre-filled upo opening teh document so simply clicking any of the checkboxes and firing the click event script should suffice.
SI
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies