By selecting the text box to change the text field

I worked on a form to allow suppliers to fill their reports of endoscopy online.  I'm trying to do something very simple.  If a user selects a check box change the value in a text field.  Either we allow the code to run once.  It will change the value once - even if I think it's to set an incorrect value in the code - but that is neither here nor there at this point.

Here's the code that should work in my opinion.

Form1. EndoscopyPage1.TestChkBox::click - (JavaScript, client)

If (this.rawValue == 1)

{

TestTxt1.rawValue = "ON"; the user cannot enter field

}

on the other

{

TestTxt1.rawvalue = "off"; the user can enter the field

}

I tried the following as well

If (TestChkBox.value = 0) then

TestTxt1.editValue = 'Off ';

endif;

If (TestChkBox.value = 1) then

TestTxt1.editValue = "ON";

endif;

I have attached the file as well.  My trial fields are in the middle of the first page.

It's just a typo. You typed rawvalue rather than rawValue "V" must be upper case.

See the attahed to the snap.  It works for me after you change this property.

Nith

Tags: Adobe LiveCycle

Similar Questions

  • The ADF button select the entry field

    Hello

    I use JDeveloper 12 c. I have a problem with something, that can be very easy to fix. I have a page with table jsff and form layout Panel to display table data. Also, I have a button, after clicking, shows popup with another form of Panel and table. I want to make that change in this popup works as - I selected the line, and after I click on disabled edit text input is enabled.

    Anyone has confirmed how to solve my problem?

    Integer popup code:

    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "p2" >

    < af:dialog id = "d2" type 'none' = >

    < af:panelSplitter id = 'ps2' splitterPosition = '502' dimensionsFrom = 'auto' >

    < f: facet = 'first' name >

    < af:panelStretchLayout id = "PSL2' dimensionsFrom = 'parent' >

    < f: facet name = "center" >

    < af:panelCollection id = "pc2" styleClass = "AFStretchWidth" >

    < f: facet = 'menus' name / >

    < name f: facet = "toolbar" / >

    < af:table value = "#{bindings." DeesrdatView2.collectionModel}.

    var = "row".

    lines = ' #{bindings. " DeesrdatView2.rangeSize}.

    emptyText = "#{bindings." DeesrdatView2.viewable? "{'No data to display.': 'Access Denied.'}".

    rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " DeesrdatView2.collectionModel.selectedRow}.

    selectionListener = "#{bindings." DeesrdatView2.collectionModel.makeCurrent}.

    rowSelection = 'single '.

    fetchSize = "#{bindings." DeesrdatView2.rangeSize}.

    filterModel = "#{bindings." DeesrdatView2Query.queryDescriptor}.

    queryListener = ' #{bindings. " DeesrdatView2Query.processQuery}.

    filterVisible = 'true' varStatus 'vs' id = 't5' = >

    < af:column sortProperty = "#{bindings." DeesrdatView2.hints.DataKwaterowania.name}.

    filterable = "true" sortable = "true".

    headerText = "#{bindings." DeesrdatView2.hints.DataKwaterowania.label}.

    ID = "c7" >

    < f: facet = name 'filter' >

    < af:inputDate value = "#{bindings." DeesrdatView2Query.queryDescriptor.filterConjunctionCriterion.criterionMap.DataKwaterowania.value}.

    ID = "id3" >

    < af:convertDateTime pattern = "#{bindings." DeesrdatView2.hints.DataKwaterowania.format}"/ >

    < / af:inputDate >

    < / f: facet >

    < af:outputText value = "#{rank." DataKwaterowania}.

    shortDesc = "#{bindings." DeesrdatView2.hints.DataKwaterowania.tooltip}.

    ID = "ot7" >

    < af:convertDateTime pattern = "#{bindings." DeesrdatView2.hints.DataKwaterowania.format}"/ >

    < / af:outputText >

    < / af:column >

    < / af:table >

    < name f: facet = 'bar of Θtat' / >

    < f: facet name = "secondaryToolbar" >

    < af:toolbar id = "t6" >

    < kalasoftCompLib:standardButtons id = "sb2.

    DodajOutcome = "create1.

    EdytujDisabled = 'true '.

    dialogListener = "#{deleteBean.deleteDialogListener} '"

    UsunRole = "deesrdat-d".

    UsunBinding = "Delete1".

    UsunDisabled = ' #{not securityContext.userInRole ['deesrdat-d']}. "

    EdytujVisible = "false" >

    < name f: facet = "beforeButtons" / >

    < name f: facet = "afterButtons" / >

    < name f: facet = "deletePopupCenter" / >

    < / kalasoftCompLib:standardButtons >

    < / af:toolbar >

    < / f: facet >

    < / af:panelCollection >

    < / f: facet >

    < / af:panelStretchLayout >

    < / f: facet >

    < f: facet 'second' = name >

    < af:panelTabbed id = "pt3" >

    < af:showDetailItem text = "#{viewcontrollerBundle.Daneslownikowe} '"

    ID = "sdi3" stretchChildren = "first" >

    < af:panelSplitter id = "ps3" orientation = 'vertical '.

    splitterPosition = "75" >

    < f: facet = 'first' name >

    < af:panelFormLayout id = "pfl3" >

    < af:inputText value = "#{bindings." DataKwaterowania.inputValue}.

    label = "#{bindings." DataKwaterowania.hints.label}.

    required = "#{bindings." DataKwaterowania.hints.mandatory}.

    columns = "#{bindings." DataKwaterowania.hints.displayWidth}.

    maximumLength = "#{bindings." DataKwaterowania.hints.precision}.

    shortDesc = "#{bindings." DataKwaterowania.hints.tooltip}.

    ID = "it15" disabled = "true" >

    < f: validator binding = "#{bindings." DataKwaterowania.validator} "/ >"

    < af:convertDateTime pattern = "#{bindings." DataKwaterowania.format} "/ >"

    < / af:inputText >

    < af:inputDate value = "#{bindings." Kwaterowanie1.inputValue}.

    label = "#{bindings." Kwaterowanie1.hints.label}.

    required = "#{bindings." Kwaterowanie1.hints.mandatory}.

    columns = "#{bindings." Kwaterowanie1.hints.DisplayWidth}.

    shortDesc = "#{bindings." Kwaterowanie1.hints.ToolTip}.

    ID = "id4" disabled = "true" >

    < f: validator binding = "#{bindings." Kwaterowanie1.validator} "/ >"

    < af:convertDateTime pattern = "#{bindings." Kwaterowanie1.format} "/ >"

    < / af:inputDate >

    < af:selectBooleanCheckbox value = "#{bindings." Blokada.inputValue}.

    label = "#{bindings." BLOKADA.label}.

    shortDesc = "#{bindings." BLOKADA.hints.ToolTip}.

    ID = "sbc1.

    disabled = "true" / >

    < / af:panelFormLayout >

    < / f: facet >

    < f: facet 'second' = name >

    < af:panelStretchLayout id = "psl3.

    dimensionsFrom = 'parent' >

    < f: facet name = "center" >

    < af:panelCollection id = "pc3" >

    < f: facet = 'menus' name / >

    < name f: facet = "toolbar" / >

    < af:table value = "#{bindings." DeessiatView2.collectionModel}.

    var = "row".

    lines = ' #{bindings. " DeessiatView2.rangeSize}.

    emptyText = "#{viewcontrollerBundle.BRAK_DANYCH_DO_WY_U015BWIETLEN} '"

    rowBandingInterval = '1 '.

    selectedRowKeys = ' #{bindings. " DeessiatView2.collectionModel.selectedRow}.

    selectionListener = "#{bindings." DeessiatView2.collectionModel.makeCurrent}.

    rowSelection = 'single '.

    fetchSize = "#{bindings." DeessiatView2.rangeSize}.

    filterModel = "#{bindings." DeessiatView2Query.queryDescriptor}.

    queryListener = ' #{bindings. " DeessiatView2Query.processQuery}.

    filterVisible = 'true '.

    varStatus = 'vs' id = "t7".

    columnStretching "multiple" = >

    < af:column sortProperty = "#{bindings." DeessiatView2.hints.Kwaterowanie.name}.

    filterable = 'true '.

    sortable = "true".

    headerText = "#{bindings." DeessiatView2.hints.Kwaterowanie.label}.

    ID = "c8" width = "50%" >

    < f: facet = name 'filter' >

    < af:inputDate value = "#{bindings." DeessiatView2Query.queryDescriptor.filterConjunctionCriterion.criterionMap.Kwaterowanie.value}.

    ID = "id5" >

    < af:convertDateTime pattern = "#{bindings." DeessiatView2.hints.Kwaterowanie.format}"/ >

    < / af:inputDate >

    < / f: facet >

    < af:outputText value = "#{rank." Kwaterowanie}.

    shortDesc = "#{bindings." DeessiatView2.hints.Kwaterowanie.tooltip}.

    ID = 'ot8' >

    < af:convertDateTime pattern = "#{bindings." DeessiatView2.hints.Kwaterowanie.format}"/ >

    < / af:outputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." DeessiatView2.hints.BlokadaFiltr.name}.

    filterable = 'true '.

    sortable = "true".

    headerText = "#{bindings." DeessiatView2.hints.BlokadaFiltr.label}.

    ID = "c9" align = "center".

    Width = "50%" >

    < af:selectBooleanCheckbox value = "#{row.bindings.BlokadaFiltr.inputValue} '"

    label = "#{row." Bindings.BlokadaFiltr.label}.

    shortDesc = "#{bindings." DeessiatView2.hints.BlokadaFiltr.tooltip}.

    ID = "sbc2".

    disabled = "true" / >

    < / af:column >

    < / af:table >

    < name f: facet = 'bar of Θtat' / >

    < f: facet name = "secondaryToolbar" >

    < af:toolbar id = "t8" >

    < kalasoftCompLib:standardButtons id = "sb3.

    UsunBinding = 'deleteRow' >

    < name f: facet = "beforeButtons" / >

    < name f: facet = "afterButtons" / >

    < name f: facet = "deletePopupCenter" / >

    < / kalasoftCompLib:standardButtons >

    < / af:toolbar >

    < / f: facet >

    < / af:panelCollection >

    < / f: facet >

    < / af:panelStretchLayout >

    < / f: facet >

    < / af:panelSplitter >

    < / af:showDetailItem >

    < / af:panelTabbed >

    < / f: facet >

    < / af:panelSplitter >

    < f: facet = 'buttonBar' name / >

    < / af:dialog >

    < / af:popup >

    Kind regards

    WK

    Hello

    Why are you calling mode through the OperationBinding because it is not part of the pageDef

    you haven't set this variable in managed bean itself so no need to call the bindings, I asked that check your edit action receive the call where not

    Just use

    public void modee() {}

    System.out.printLn ("Called")

    this.setMode ("E");

    }

    did you read my previous comment?

    Thank you

  • ? Selections of list box to show/hide form fields

    OK, so I want to use a list box to control the fields on form on my page are visible or hidden. I have no problem creating the list and adding items to the list, but were not able to understand what I need to connect each selection in the relevant script form field I want that he controls.

    So, basically, I want to know what javascript is required in order to allow the end user to select one or more items of the listbox and have these fields become visible on the page. How can I do this?

    Had a look at your code and you complete the loop before running your tests. If moldy either inside the loop for. statements I have modified your code (reformatted into it a bit so it is easier to read) and it included here.

    Paul

  • Always selectable hidden text fields?

    I have a few contextual screens in my app with TextFields. They are set to appear in the center of the screen when a user demand, the problem is that, while the Group's point of view is hidden and the textfields are not visible on the screen the user can give still textfield focus. This happens with the SDK Flex 4.6.0 Air SDK 3.0.0. Soft original was developed in the Flex SDK kit 4.5.1 and Air SDK 2.0.0 and at any time I see this kind of behavior. If anyone has experienced this before? and are there any suggestions or corrections to do, are looking for something quick and easy. Thank you!!!

    Instead of setting the visibility have you tried add/remove children?

  • Select the value of list view

    Hi all
    Does anyone know how to make a ReadOnly list select and display the display value not the return value when you change the data? I made the list select a text field, text box, etc... but the return value is displayed and not the display value. I don't want my end users to edit the article, but I don't want to show them the value of display. Ideas and help is appreciated, thanks.

    Hello

    As you do not want your users to change the item, could you not use one of these 'View text (based on LOV)' instead?

    Andy

  • Fill in the text field when TWO radio button is unchecked

    Hello

    I don't know anything about javascript and need help.  I have a photography contract I want to offer a "discount package" of $50 when the two services will be used.  1 service is 'Photography coverage' and Service 2 'Photo Booth Rental'.

    Text field 1 = subtotal (calculates the values of checkbox and radio button)

    Text field 2 = discount (it's where I need help.  I would like this automatically filled with $50 when my default two boxes are not selected.  But only when the TWO are not selected)

    Text field 3 = Total (which has a basic calculation of the Subtotal-Discount)

    The services of two by default (it's done on purpose, I checked from the beginning) are both set to the '0' values to keep the subtotal $ 0.  If the client will use a service (which means one of the default selections will be selected), then there will be no discount, but if they decide to use photography and the cabin, they save $50.

    Can someone please help me to write a script for the text field, Discount calculation, to accomplish what I ask?

    Untitled-3.jpg

    You can use something like what the calculation script custom field discount:

    Event.Value = (this.getField("Service1").value == 0 | this.getField("Service2").value == 0)? 0: 50;

    Simply adjust the field names in the code to match the real in your file.

  • Query of the police in dynamic text fields (livecycle ES3)

    Hi all, is it possible to configure a dynamic form (livecycle ES3) to allow the user to enter the normal two (by default) AND a bold font in a text field? In addition, if different color font were to insist on a point - is it possible? Enjoy cany help in this matter. Thank you

    Yes to bold, but I don't think (unless someone can correct me) on the highlight. For the bold, you first have to change the Format of field in the window object library. Once that is then activated in the two player (if you extend the right permissions) and in Acrobat, you can select the text that you want, right-click on it, go to 'Text Style' and then change the font of the selected text only for "BOLD". I put some screenshots below of what it will look like. Derivative is a different beast in Adobe. Specific text highlighting is not an option that allows Adobe and Livecycle, I don't know if there is a way to let a user highlight specific text in a field. If you try to use the method to highlight in Acrobat or Reader, it will prompt you to created a printed version. You can select the entire field itself with a few JS Livecycle, but the text are not specific.

  • The date fields are clearing after selection LOV

    Hello

    On the page of my creation, I have four fields, only two LOV and two Datetime fields. After you have entered the fields date, when I select the LOV fields the two datetime fields are going to cleared. Please do the needful.

    Kind regards

    Jean sebastien

    problem solved.

    Thank you.

  • Text field with AutoComplete do not store Item Value for Cascading LOV

    Hello

    I have created a form to the APEX 4.2, and two elements on the page have a problem. The first point is a text field with AutoComplete for the PROVIDER. The second element is a list select number that has the PROVIDER as part of waterfall to fill.

    When a user selects one of the values that the field can be seized semiautomatic provider , the value autocomplété should make the selection list produce the numbers respective associated PROVIDER. The problem that I am running is that AutoComplete is not give PROVIDER selection list value is filled.

    For example: if I type 'st' in the PROVIDER field that autocompletes to "steve" is selected, the NUMBER field must interrogate him for the numbers where VENDOR = steve. However, after reviewing the Session State from the PROVIDER element, the contained value is always only "st."



    Here are the settings I have for the field PROVIDER : and NUMBER:

    name.JPGnumber.JPG

    There should be a way to have the value of the seized field semi-automatic to account for what appears after selecting a value, but I don't know what it is. You can provide any help would be appreciated.

    Thank you!

    your query full auto would: select supplier_name | ' ('| supplier_id |') '

    provider AutoComplete onChange, get the supplier_id and then value the selected drop-down list by using this code.

  • List drop-down selection trigger change in the text field

    I'm hit a roadblock here. I'm on Adobe Acrobat XI and here's the scenario: I have a list box and a text box.

    Drop-down menu field has 3 caps (A, B, C).

    If A is selected, the text box = 15 default, but has the ability to change in the text box.

    If B or C is selected, the text box = 0 or "by default, but it has the ability to change in the text box.

    If I use an if/then with a .value, I'll be able to get the numbers to work, but do not have the ability to edit and keep them there. If I enter another number in another area, the JavaScript code will run and change the text box to 0 or 15.

    Any help would be greatly appreciated.

    Thank you

    Instead to use script logic for the text field, use the drop-down validation script. In this way, that it only will be triggered when you change the value in the drop-down list field, not when you change any field in the file (as the calculation script).

  • Martyn King: Martyn King: I don't see how to change the opacity on MUSE CC it is grayed out when I select my form box. Martyn King: it is on an element in the form of CAPTCHA.

    Martyn King: King of Martyn: I don't see how to change the opacity on MUSE CC it is grayed out when I select my form box.

    Martyn King: On an element in the form of CAPTCHA.

    Unfortunately, we can not change the opacity of the captcha has filed the fill option, are looking for a way to set the background and text color even? or you want to set the opacity so that object behind the rating should be visible?

    Thank you

    Sanjit

  • change the color in the text box in the required field

    I would like to change the color in the white box (don't know a better name for this space on the form) next to a field title. And only for the mandatory elements on a page. This could be a selection list, a text box or a text field.

    I looked at several positions. I understand how to change the background color of the label of the element on the page. But not what I need.

    I gave a quick glance at the last post titled "the color of text field" led me to the site

    [http://apex-notes.blogspot.com/2007/12/colorful-web-forms.html]

    provided by Paulo Vale. Moreover, very well done Paulo.

    However, when I followed the instructions for all 3 formats ' display as ' for a field, the content of my form has disappeared and all that showed has my original banner at the top of the page.

    So does anyone have an idea to share on how to change color whitebox of a page element?

    Thank you
    Maggie

    Published by: mjhamilton on December 11, 2008 09:23

    Hello Maggie,

    The 'problem' with APEX, is that the deposit contains no information whether a field is required or not. Only the label has an attribute that you can set to "Required". Of course, you can create a query to retrieve items with a "Mandatory" label by:

    select WORKSPACE, APPLICATION_NAME, PAGE_ID, PAGE_NAME, REGION, ITEM_NAME, ITEM_LABEL_TEMPLATE
    from APEX_APPLICATION_PAGE_ITEMS
    where ITEM_LABEL_TEMPLATE LIKE 'Required%' 
    

    As Paulo wrote: you must manually set the attributes of elements of HTML form to a class (like class = 'RequiredField') and create an entry in your CSS for this class (I like. RequiredField {(background-color: #FFFFCC;}).}
    Or you can write clever code automagically defines this class for all the elements that are returned by the above application. I don't have that, but you should do something like:
    1. create a javascript function that onload is triggered. This js function must call an application process.
    2. this AP retrieves the 'required' of repository items and returns to the js function.
    3. the js function adds the class needed to these elements.

    Good luck ;-)

    Greetings,
    Roel

    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.Logica.com/

  • How can I prevent Pages 5.6.1 selecting the invisible when I change the text in bold, italic, etc. on a new line

    This is starting to annoy me a lot and I have not found something online that will solve this problem.

    Let's say I'm editing a file.

    Now I say "Oh, I need to put a"BOLD"two lines after the second 'Cogito ergo sum'"- so I go to this line and press Cmd + B (shortcut for "BOLD") and in this case:


    He selects the invisible! Now, let's say I write about it

    It disables the "BOLD"! What is the point of this? This makes me press the shortcut and then I have to press the arrow to the left. That you understand it's frustrating because it's a waste of 4 seconds, every time I want to change the style of the last line. And for someone who publishes an entire document, it is VERY frustrating.

    Can someone help me?
    I hope it's a clear description of the problem

    When you use the attribute text keyboard shortcuts, it's a good idea to show invisible, so that you know where click to place your insertion point - before selecting the keyboard shortcut. If you want to use these shortcuts, you must adapt to the way in which the Pages to do things and not try to make it work like MS Word.

    When you select the paragraph marks, the following keystrokes will remove them, right as well as your sense of humor.

  • Cannot select the text to change

    I inherited a document and I can't change the text on a page. I tried the different layers but cannot select same text.

    I use CC 2014.0

    Brian

    Is the text on the master?

    It is on a locked layer?

    The text block is locked?

    Something is above the text frame?

  • With the help of Adobe Acrobat Pro XI: is there a way to select existing text / change the font color of this

    With the help of Adobe Acrobat XI Pro Trial Version: is there a way to select existing text / change the font color of the text?  (there are here - but where is it to XI pro?)

    I have been using Acrobat 8 Pro & it's very simple, but I was not able to do using Pro XI!

    1. Open the PDF file
    2. Click on the Tools Menu
    3. Click the editing of content
    4. Choose text & Images

    They wanted to make it easier to get.

Maybe you are looking for

  • Replacement of the CPU on my Satellite 1000-s158

    Hello from Russia! Sorry for the poor knowledge of English, the message is translated by the translator of the computer. With the greatest pleasure a few years that I use Toshiba Satellite 1000-s158. He is very happy with the purchase. Unfortunately,

  • Installation & looking for drivers XP for Satellite P200 - 1C2 Solution

    I see here many have problems with installing windows and drivers for xp. XP installationA normal sp2 installation cd will not be able to install windows on the laptop. You need the S - ATA for Intel drivers.You can download the site http://www.Intel

  • Old laptop windows 7 to new pc?

    Hi all, I'm gettibg ready to byild my new gaming computer. But can I use my oldlaptops windows 7 in my new pc gaming? Thank you Jason

  • 1813 and 1053 Printer Spooler error... I can't print

    Help me! I bought a new dell inspiron 1545 in December and a new printer Dellp713w after Christmas. I was able to print until this week (April 1) and now I get the 1813 and 1053 error when I go to start my spooler.That's happened? I ran the scan from

  • Impossible to pass to win 8 to win 8.1

    I use the computer laptop dell vostro 2520 with pre installed win OS 8. But I can not able to upgrade to win 8.1. Windows store indicates that the option is not for you. I didn't have any key for the operating system, as it had been pre-installed.