Conditional fields

Is it possible to do a required field depending on the how of a previous button or if a user has clicked on a box?

Thank you

Kim

Hi Kim,

You can apply the following script on the "Mouse Up" of option buttons Action.

Suppose you have 2 buttons A and B and you want to make the text field (Text2) required when A is selected, you can add 'Run a JavaScript' action on the

Mouse up button A: trigger

If (event.target.value == "A") {}

this.getField("Text2").required = true;

}

Mouse up the outbreak of the b button:

If (event.target.value == "B") {}

this.getField("Text2").required = false;

}

Please check this form to learn more.

Kind regards

BR

Tags: Acrobat

Similar Questions

  • Conditional fields not displaying no not after closing and re-opening of form

    Hello

    I'm working on a purchase order that has some conditional fields / pages that need to be visible / hidden based on the user's selection. However when I close it, then reopen the form all parts are passed to default view (visible or hidden). How can I prevent that (other than to print the form in PDF format).

    Hello

    Under form properties... (Tab) default values, you can assign 'keep changes to scripts to form when registering' automatic.  If it is set to manual and you want to keep it this way you add the code in the initialize event to restore the State of form.

    Hope that helps

    Bruce

  • Display of the conditional field of Apex Oracle

    Hello

    I created two Wizard page in Oracle Apex.

    I have a table point and item_detail. For element1, I have a record of detail and item2, I have two detail record.

    Step 1: Choose the section that will fall to the bottom of the roll of the order of the day.

    On step 2: based on the record number of detail items, I want to display the text on step 2 fields. If item1 is selected in display 1 thenl, textdisplay1, and textfield1 to step 2 step. If item2 is not selected ' will display textfield1, textfield2 to step 2, textdisplay1, textdisplay2.

    SQL/pl/sql condition will be: select count (*) in the item_detail where item_id in (select item_id station where nom_element = 'provided to the step 1 "

    I want this dynamic ability to display fields or at least to hide textdisplay2, textfield2 based on condition of sql/plsql.

    Thank you

    Fields / display items (or hidden) by the result of the 'Condition' selection on the page field specification APEX / point. (You have all the tabs at the top: Identification, UI, grid, Label,..., Condition,...) Condition determines whether the field is displayed. Defaults to '-point not conditional ' but if you click on the drop-down menu, there are different conditions of 30-50. There are, there's NO..., never, always. If you select "PL/SQL function body returning a Boolean", it will add an Expression 1 box in the GUI where you can write a "starting...". End; "block to return TRUE or FALSE for the condition. It display if TRUE is returned, skins, if FALSE is returned. (Someone other chime in here if I missed something.)

    It is a VERY characteristic slick of APEX. The only addiitons I could ask would be: positive, negative and "do what I mean".

    Howard

  • Conditional field to another field? [Fax info]

    Hello

    I am creating a form in Adobe Acrobat Professional for the commands to use here at the office. I have 2 fields for contact information that I am trying to "connect" to the user, so that simply selecting a provider in the ZONE 1 (in a drop-down box) could fill information fax from this provider in ZONE 2. I have looked at javascript and conditional formatting, but based on the examples I read that I can't make it work quite. Does anyone have a better way to get this working?

    Here's a Visual example:

    Picture 1.png

    I want to basically - when you select a provider from the drop-down list field "Vendor1" that fills the fax number appropriate to the provider in the 'Number of Fax' field below.

    You can provide any help is appreciated!

    Thank you

    the easiest way is to set the 'Export' value for the "point", name of the seller, to the fax number of the seller. You can then define the calculation script customized to the "Fax number" filed to the value of the field "Vendor1.

  • Please help me its urgent - restrict the update against a condition field

    Dear friends,

    I'm new to the oracle forms... I want to limit an update filed against a condition in my form.

    I use multi record block. I want to disable some fields in a row for example there are 10 records in the block record I want to disable the three elements of the 2nd file based on a condition. How can I do?

    Hello
    You can use the built form in SET_ITEM_INSTANCE_PROPERTY procedure and the appropriate property... (UPDATE_ALLOWED = PROPERTY_FALSE).

    For example:

      begin  ................    if       then          set_item_instance_property('',,UPDATE_ALLOWED ,PROPERTY_FALSE);         set_item_instance_property('',,UPDATE_ALLOWED ,PROPERTY_FALSE);     else         set_item_instance_property('',,UPDATE_ALLOWED ,PROPERTY_TRUE);         set_item_instance_property('',,UPDATE_ALLOWED ,PROPERTY_TRUE);    end if;  end; 
    

    For more information, take a look at the online help...

    Greetings,
    SIM

  • Conditional fields on PDF forms?

    I develop a PDF form that has fields that should be active/filled if another domain is active/populated.

    Examine the fields A, B, B1, B2 and C.

    Zones B1 and B2 not should be full and active a field B = 'YES '.

    On the other hand, the behavior of the fields was not related to the value of the field B and C must always be filled.

    How can I do this?

    Thanks for the tips.

    As the script validation custom b, enter the following:

    var f1 = this.getField("B1");
    var f2 = this.getField("B2");
    if (event.value=="YES") {
        f1.readonly = false;
        f2.readonly = false;
    } else {
        f1.value = "";
        f2.value = "";
        f1.readonly = true;
        f2.readonly = true;
    }
    
  • Adobe DC Java Script for the population of conditional field

    I have to write a script in a form that will be contained in a text box and populated by one based on the user by checking a box

    Scenario of

    A form contains two sections, there are two sections Head Office information and accounts payable.  The user saves the headquarters address information for example the street address, city, province, PC, etc.  one moves to section 2 two to record accounts payable information.  The Department accounts payable may be located to one address which is not at the headquarters.  There is a check box labeled "same as headquarters" by checking the box that the user is to identify that this is the same address and I want the form automatically fill the street address, city, province, PC already filled in the section of headquarters.  If the user does not identify the address is the same as the location of the headquarters, the user must manually register the information.

    Is not not a technical developer I'm lost, I tried many sites.  I really miss adobe lifecycle designer and the previous method to create actions.  Help, please!

    My JavaScript to date (sorry it must look not so good):

    this.getField("Same").value;

    If (Same.value! = null) {APStreetAddress.value = HOStreetAddress.value}

    This kind of thing can become a little complicated depending on exactly how you want it behaves. It's simple if you only need the script that will be triggered when the check box is selected, in which case the script of mouse upwards to the box could be:

    Script mouse upwards to the box

    (function () {}

    Do nothing if this check box cleared ix.

    If (event.target.value = 'Off') return;

    Copy the values from the previously filled (probably) the text for the other fields.

    getField("APStreeAddress").value = getField("HOStreeAddress").valueAsString;

    getField("APCity").value = getField("HOCity").valueAsString;

    getField("APPostalCode").value = getField("HOPostalCode").valueAsString;

    Add code to the other fields here

    })();

    Just be sure to use the names of real field.

  • Conditional fields with data merge

    I have, I think, would be a common question for people using Data Merge in InDesign for cards.

    I have several fields phone, with a letter from small caps to indicate what type (mobile, direct, fax, etc.), that is:

    M < < phone > >

    D < < Tel Direct > >

    If an employee has only one phone line, how can I do so that the entire line is omitted from the final merged doc?

    In the past, I just went in the game final and quickly deleted lines / extra characters, but I know that there is a way!

    Thank you.

    mavenlink cards1.1_Page_1.jpg

    The main character must be included in the paragraph style, even if it's a Word. If deleting empty lines turned on, these main characters are removed too.

    To add the main characters in a paragraph style, you can define a list numbered without numbers but with the main character and space or tab between.

  • conditional field in form

    Hello, I need to verify the age of a person submitting a form, if their age is less than 18 years of age, then I need to do a check for a required tutor.

    Thank you

    There are additional script in the form of validation function,

    Just add after var why = ""; or before if (why! = "");

    If so it will show additional fields or a checkbox under 18, it's what you want?

    You can use jquery / javascript.

  • Java script conditional fields

    I am trying to enter a Java Script for a set of Yes/No boxes, where if you enter Yes it will ask you to enter text in a numeric field nearby.  The script I use seems to work, but once the user enters Yes only once, won't them change their response to no. without getting the error message saying they need enter the text in the other field.  Can someone help me with what I'm doing wrong?  Here is the script I use.

    '2' is set to Yes and comappNUM1 and commappFC1 are the names of fields that I want to be necessary if you choose Yes.  I guess something must say to turn off if none is selected.

    If (this.rawValue == '2')
    {
    comappNUM1.mandatory = 'error ';

    comappFC1.mandatory = 'error ';
    }
    else {}

    }

    You must use the change event of the RadioButtonList method script!

    The ' ' is false.

    If (this.rawValue is '2') you can also use "2".

    If (this.rawValue == 2)

    {

    comappNUM1.mandatory = 'error ';

    comappFC1.mandatory = 'error ';

    } else

    {

    comappNUM1.mandatory = "disabled";

    comappFC1.mandatory = "disabled";

    }

    I hope this is useful,

    Mandy

  • How to solve the problem if BIP condition field, it's too?

    When I calculate area BEEP generator Word XML such as <? sum (//Total_of_Begining_Balance_ID14 [... / CategoryCodeGl022_ID9 = '1101'])-sum (//Total_of_Begining_Balance_ID14 [... / CategoryCodeGl022_ID9 = "1102"])? > in advance. But when the condition is too, I've reached the limit of advance window. How can I solve this problem? Is there a solution?

    Can u send me your sample XML and RTF, so that I can help you

  • How to make a conditional field read-only

    Hello

    There is a field "Date to close." I need to check if the date today and the "closing date" is located in the same quarter. If Yes, then, a particular field must be made editable otherwise not.
    (Better, if it could be done by using the properties of the user business component)

    Try this...

    Create a calculated field 'Qtr RO' and set the value as

    IIF (JulianQtr ([end Date]) = JulianQtr (Today ()), "N", "Y")

    and assign the property use business for the field "Qtr RO"

    I hope this works.

    -Siebelade

  • Development of the conditional field

    Hello

    I have a page with two fields. If the value of the field 1 is zero, I want the focus to be on the field 1. If the value of the field 1 is not null, I want the focus to be on the field 2. I tried this:
    <script language="JavaScript">
    if $v('P1_FIELD1') != ''  then
      document.getElementById("P1_FIELD2").focus();
    end if;
    </script>
    and using various iterations of said $v, $x, etc. but I can't make it work and I get an error:

    EXPECTED ' (')

    Page cursor focus is set on not focus not cursor.

    Hello

    Try

    
    

    BR, Jari

  • Model report - how to reference COLNUM in the condition of neck model?

    Hello

    I have a query with 4 columns. based on this query I would like to make a report with a layout of the line that looks like this:

    | the value of Column1 |
    ----------------------------------------------------------------
    | value of Column2 | value of Column3 | Column4 value |

    I created a report model, four column templates: one for column 1, one for the following columns and one for the column of weary of the report.

    My problem is that when I reference * #COLNUM #* as mod(#COLNUM#,4) = 1 in the column template condition fields, then I get *'ORA-06550: line 1, column 34: PLS-00103: encountered the symbol "#" when expecting one of the following numbers: () - +... "*

    Reference COLNUM not allowed in the column template Condition field?

    Tamas

    Published by: Tamas Szecsy July 16, 2011 23:33

    Tamas Szecsy wrote:
    I have a query with 4 columns. based on this query I would like to make a report with a layout of the line that looks like this:

    {noformat} | the value of Column1 | {noformat}
    {noformat}----------------------------------------------------------------{noformat}
    {noformat} | value of Column2 | value of Column3 | Column4 value | {noformat}

    I created a report model, four column templates: one for column 1, one for the following columns and one for the column of weary of the report.

    To do this, you create a named column (model line), not the generic columns (column model).

    Front of the lines

    Model of line 1

    After the lines

    #1#
    #2# #3# #4#

    No condition.

    What about table headers?

    My problem is that when I reference * #COLNUM #* as mod(#COLNUM#,4) = 1 in the column template condition fields, then I get *'ORA-06550: line 1, column 34: PLS-00103: encountered the symbol "#" when expecting one of the following numbers: () - +... "*

    Reference COLNUM not allowed in the column template Condition field?

    I do not suspect. Only #ROWNUM # is mentioned in the online help for column/line template Expressions. #COLNUM # is indicated only in the column/row templates themselves.

    (Always post sample layouts using \

    ...\
    

    or {noformat}... tags {noformat} to keep in shape/stop Jive to transform into something else.)

  • Create a conditional formula

    I would like to create a form that has conditional fields. For example, the user chooses a car Acura brand and then the model field displays only the types of models of Acura.

    Is there a simple way to do this without writing code or pay for a service that charges by returned for / monthly fees? Or is it a WCC I use somewhere. It's a bit above my head.

    Any help or links would be much appreciated!

    AnniePaperdoll wrote:

    How specifically would I go to this topic? Sorry, I'm totally confused.

    View source code:

    http://labs.Adobe.com/technologies/Spry/samples/data_region/DataSetMasterDetailSample.html

Maybe you are looking for

  • How automatically display new messages as it comes.

    I'd rather see new messages in the Inbox without having to click on get Messages or scroll down. Is this possible? Thank you

  • A Wi - Fi connection does not work on Satellite L500D

    Hi all I had a problem with my wifi portable computers function. I press fn + f8, and nothing happens at all. The computer does not connect what either, and it is to show a cable ethernet with an X in it down on the bottom right of the desktop. I tri

  • HP Pavilion p6 - 2302a - USB bus

    Hello I recently installed windows 7 home premium on my desktop but it Miss drivers usb bus and cannot find where to download the. Thank you.

  • Cannot install updates security KB2281679, KB2296011, KB2387149. Error 800b0100 cod

    Hello I can't install these updates.  I use Windows 7 for several months now. I ran the system update tool, and installed a KB947821 hotfix.  I don't have to restart, but apparently installed the update history.  I try again to install updates KB2281

  • dm3-1105ea WWAN ready or not?

    Hi, I have a dm3-1105ea with SIM card (on drums). I know this model not including wwan card, this feature is opcional and each DM3 model, including the SIM card. I have now, I want to buy a modul WWAN gobi 2000 (it is good add-on?), but the problem i