change field bitmap on the focus of radio button
Hello
I have 4 radio buttons in a group of radio buttons. Each of the radio buttons has a picture that is linked to. I want to change the image of a bitmap field whenever a radio button got the update.
How can I do?
Thanks in advance.
Call super.onFocus and super.onUnfocus, as well as the change of the bitmap of treatment.
Tags: BlackBerry Developers
Similar Questions
-
Visible field according to a choice of radio button
Hi all
I have this form where I have a group of yes/no radio buttons. I would like to a numeric field to appear only when users click Yes. When the form opens, or if users do not set it to Yes (not default) field should not appear.
There is a min and max limit attached to this field, which should only kick in when the field (limits of should not be applied when the field is hidden).
My questions are:
Where should I put the condition visible/hidden? In the Group of radio button or on each subform condition yes/no? I tried both, so far, but it did not work.
The script I've tried is (at the exit event of the Group of radio buttons):
If (this.rawValue == 2) {}
... RightDetection.ChoixYesNo.DetectionDelay.presence = "visible".
}
else (this.rawValue == 1) {}
... RightDetection.ChoixYesNo.DetectionDelay.presence = "hidden".
}
The limit min/max used to work before, but since I started playing with this area, I now have an error on the first bracket. Could someone tell me why?
The limit script is as follows:
If (this.rawValue < 1)
{
xfa.host.messageBox ("specify at least 1 in this area", "Warning", 1, 0);
xfa.host.setFocus (this);
}
If (this.rawValue > 365)
{
xfa.host.messageBox ("specify in most of the 365 in this area", "Warning", 1, 0);
xfa.host.setFocus (this);
}
Thank you very much in advance for your help.
Why not not just the value of the type field user entered - required
-
define a field as requires it, from the Group of radio buttons
I saw not a strong response if you can set the field as required - in this case a date field based on the selection of a previous radio button.
A post was that you couldn't do with calc form, it will have to be JS.
I'm not the best at that. The form is sent by mail on a web server for data capture.
Any help would be appreciated.
Hello
Yes, you can change the status of 'necessary' to one or more fields by using the validate.nullTest in Formcalc or Javascript. You can use script like this in the output of the option button event:
If (this.rawValue == 1) then
DateTimeField1.validate.nullTest = "error".
on the other
DateTimeField1.validate.nullTest = "disabled".
endif'error' sets the field referenced on required; considering that the 'disabled' changes back to not required.
Good luck
Niall
-
How to make the non selectable radio button field
I want to UN selectable radio button field average user will be not be able to select. How can I achieve this. Please help me for this.
You could remove them from the screen, or do unfocusable or make unmodifiable. The choice will depend on what you're trying to reach.
-
fields to show or hide the function of radio button
Hi, in my form there are two radio buttons available. one is for 'Yes' and other is for the 'no '. There is also another 6 available and that all fields 6 fields are hidden by default. If I click on 'Yes' below 3 fields should visible.
text-1
text-2
text-3
If I click on "no" above 3 fields must hide & 3 fields should visible below.
text-4
text-5
text-6
then u can pls give me JavaScript to manage my requirement. Thanks in advance.
Hiding and showing form fields by Thom Parker
Disabling (graying-out) form fields by Thom Parker
-
change the color of radio button
Hi guys
How can I change the color of a white radio button. I tried to add a class, but his does not work.
V thanks a lot in advance
Hi Ken and DottyDog,
It's true, and it's Roger Johansson aka "456 Berea Street" always points back. And so it is really therefore also read its general articles.
Hans G.
-
You can change the color of the quiz answer radio buttons / checkboxes?
Captivate v5.5
I like to use a background image on my quiz slides (see below) and thus answers boxes option and check boxes (which are gey) do not stand out as much as they would on a white background.
I know that I can reduce the parameter Alpha of background or even use a different background, but before we go down this path, is there anyway to change the color of these buttons/boxes or make them stand out more?
Noel
Why don't you simply place a point box culminating or rectangle behind the quiz answer text captions? Just make it white and set the transparency on this box to be about 50% or more. The legends of the response text will always be on top. The area under expected to reduce background noise. It should only be slightly larger than the area occupied by the text captions.
-
Focus of radio button (should be easy)
When you have a group of radio buttons and radio buttons you set the button of the radio as FOCUSABLE or do something else to operate the myradiobutton.isFocus ()? I'm testing to the development in navigationclick but I still don't see not the radio button with focus - even if it is highlighted and if I hit enter it is activated.
I'm in a pop-up window. I develop for the 4.2. Just below the Radio buttons is an objectlistfield and this area is still active even if the radio button is selected and functional if I hit the enter key. It's almost like radio buttons are on the top of the objectlistfield or something but I didn't something fancy to try to put one over the other and if the list is empty, I don't see the "* void *" is located on top of the radio buttons, and vice versa.
//The radio definitions RadioButtonField radio1, radio2; RadioButtonGroup rgrp; //The radio group and button creation rgrp = new RadioButtonGroup(); radio1 = new RadioButtonField("Phone", rgrp, !saveToSD); radio2 = new RadioButtonField("SD", rgrp, saveToSD); radio1.setChangeListener((FieldChangeListener) this); radio2.setChangeListener((FieldChangeListener) this); // Where I am testing for navigationclick protected boolean navigationClick(int status, int time) { if( radio1.isFocus() || radio2.isFocus()) { super.navigationClick(status, time); return true; } -- if radio buttons don't have focus the next section of code will get the objectlistfield selection and take action --
Am I missing something simple (like a task to put the word FOCUSABLE)?
Thank you
Craig YorkThank you Rex - you put me on the right track and I hacked together something that works...
Details:
getFieldWithFocus returns the VerticalFieldManager - not very useful
getLeafFieldWithFocus returns the field I really want
After several iterations of trial and effort I finally just changed my code to this:
Field tmpfield = getFieldWithFocus(); Field tmpfield2 = tmpfield.getLeafFieldWithFocus(); if(tmpfield2 != fileList) { return super.navigationClick(status, time); } // fileList is my objectlistfield so if I am not processing that just let super handle this navigationclick
Note I have also now use your Super return... instead call super and returning true - it makes much more sense.
Thank you VERY VERY much for sending me in this way.
Kind regards
Craig York -
The award of radio buttons to the signatories Echosign.
I have a form of EchoSign, which must be completed by the signer1, but cannot be modified by the subsequent signatories. I put all the fields must be attributed to the signer1, but the default value of "Anyone", radio buttons and I can not change this setting.
Hello Paula3869,
You can assign the specific role of radio buttons according to the signer by double clicking on it and selecting role as E-sign of Signer1, 2 as needed. Here is the link for reference:
https://helpx.Adobe.com/content/help/en/document-cloud/help/field-roles.html Kind regards
-Usman
-
Fields of text format based on radio button selection
(Beginner) I have a form, which one party uses five 5 choice of radio button. If "Choice5" is selected, I want to field 'X' (in the form) to display a red border.
I need assistance with the JavaScript code for this action.
Thank you!
A minor change...
"this.getField("X").strokeColor = event.target.valueAsString =='choice5 '? Color.Red: color.black;
... and it worked.
Gilad thanks D!
-
Change ' display as ' type text box with radio button
Hello
I have a field on a form html clob. I have the default ' display as ' the value "Textarea with spell checker... I created a radio button with 2 values:
Edit
Overview HTML
Is it possible to change the "display as" to "with the HTML Textarea editor' to switch between the radio button options? Any help would be appreciated I am running 3.1.2.00.02
Thank youYou could
(1) call textarea_1 'Textarea with spell checker.
(2) define as «Textarea with HTML editor» textarea_2
(3) use javascript to show or hide one of them according to the radio buttonCITY
-
field text in the middle of option buttons tab
CAN I have a tab of text in the middle of option buttons field, I have 5 radio buttons and 2 / 5 have a box to fill if you select this button.
How can I get to the tab in this area if they choose this button.
You can place the fields around where you want, but you cannot insert a text field in the middle of the tab order of a group of radio buttons. If you want it to run like that then you must use the boxes instead of radio buttons. Then, you will be able to do.
-
If the else with Radio button statement
I try to make a PDF form for customers to order event services. I have a field I want to fill it with a number based on their choice of upgrade that is defined as radio buttons. If they choose option 1 or 2, the upgrade price is X. If they choose option 3 or 4, the upgrade price is Y. I want the text box to display X or Y depending on their choice. Or just 0 if they choose to not upgrade.
JavaScript is quite far from my knowledge base, but I try to understand it anyway. Any help? What I have below (and everything else I've tried) does not work.
If {(btn1.checked)
162 = Event.Value;
} Else if (btn2.checked) {}
182 = Event.Value;
} Else if (btn3.checked) {}
162 = Event.Value;
} Else if (btn4.checked) {}
182 = Event.Value;
}
Then you can use something like this as a custom text field calculation script:
Event.Value = "";
var v = this.getField("menu").value;
If (v == 'opt1': v == 'opt2') {}
162 = Event.Value;
} else if (v == 'opt3': v == 'opt4') {}
182 = Event.Value;
}
-
Display image in the Group of radio buttons?
Hello
I tried to add images on my radio button group
But he replaces signs ' < ' and ' > "by" & lt; "and"& gt;""select '<img src="/../i/ok.png">' as d, 1 as r from dual
No idea how to avoid html to replace these characters?
(I use Apex 4.0)
Thank you
UjiHi Uji,
To display an image on your radio group, using your original query:
select '' as d, 1 as r from dual
.. quality radio group element and scroll down to the area of 'Security' of the page this article Page, set 'Escape special characters' Noand click on apply changes. Now, when you run the page, you will see your image in your group of radio buttons.
Kind regards
Hilary -
IdeaPad z460 - how to turn off the physical wireless radio button?
Hello...
It is possible to disable the wireless radio button? It's very annoying when I disable the wireless without notice and wasting time trying to figure what happened.
TKS,
Hi neokenchi,
Then... Thanks again for the reply, but I'm a little disappointed that I can't set (enabled) button.
The only way is to avoid touching this unawareness button...
Maybe you are looking for
-
How can I disable "raising to Wake?
How can I disable "raising to Wake?
-
Hello, my safari on my macbook pro crashes since this morning and I decided to ask here; I keep trying to stick my crash below report but I get a message saying that there is no valid letters. So guess now my question is - how can I I paste my accide
-
All my favorites appeared in a water drop down automatically to an icon at the right end of the bookmarks bar. These were not only the additional toolbar bookmarks, but all the bookmarks you'd get to go to bookmarks in the menu bar. Now all I have is
-
I have a MacBook Pro and upgraded to El Capitan and iPhoto and photo apps are both filled with photos. Photos in each of the applications consume storage? iPhoto has 60 gigs and pictures has about 80 concerts can iPhoto removed and it will have a ne
-
Export slide show to DVD format?
I have a full slide show some images of 96 with music in the background. How do I export it to the DVD format to play on a standard DVD player? I'm on OS 10.11.1 and Photos Version 1.2 (340.4.0) Thank you CB