Using drop-down list and the required fields

I am trying to create a timesheet in Livecycle to replace the current form I have in Excel. I'm still a beginner w / LiveCycle and this is the first question I've had for some time. I have problems that require a field based on a choice.

The timesheet is set up as follows:

Timesheet Screenshot.png

In my excel spreadsheet when you choose the project, the customer: job field in the same row turns red, indicating that it is now a required field. If you choose overhead, the explanation field on the same line turns red, indicating who's now is a required field. I want to do the same thing with this form (blushes) is actually make the field required, which is simpler.

Can someone help me with this? I feel very lost. If it is not possible to change fields based on selections from drop down someone has any alternative suggestions? Any help is very appricated.

You can do the following...
Exit the drop-down list with JavaScript as a language event.

If (DropDown1.rawValue == 'Project') {}
Customer.Mandatory = 'error ';
JobField.mandatory = 'error ';
}

You can replace the domain names with the actual names in your PDF.

If you want to enable compulsory you set property "error."

to disable you set the property to "disabled".

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • Width of drop-down list and the number of drop-down list values

    How to increase / decrease the width of a drop-down list on the screen of your interview? In addition, how you increase the number of menu options drop-down user, some of my options in drop-down list don't show up. This shows only 3 points:...

    For OPM 10.4:

    Increase the number of visible items in a drop-down list

    There are two options:

    1. make a regular drop-down list instead of a list of drop-down list box. Regular drop-down lists always display all items, regardless of the length of the list. To do this, set "enable-search-comboboxes = false" in the appearance.properties file. "

    2. increase in the search results max for the combo box in the file appearance.properties, for example 'search max-results = 20' (or another number as appropriate)

    See article OPM the User Guide for more details: http://docs.oracle.com/html/E54499_01/toc.htm#Interviews%20and%20flows/Customize_Web_Determinations.htm#Change4

    I have a vague memory that the increase in the width of the drop-down lists is a bit more tedious. I'll take a look and post here...

    See you soon,.

    Jasmine

  • Select from a drop-down list and the specified element values are displayed in the textfield

    I need for one to be able to select from a list drop-down and specified the item values appear in textfield.

    For example, if I select Amy

    If I select Bob

    If I select Jane

    Amy

    Bob

    Jane (I want to appear as shown in the list)

    I associated a value to each item in the drop-down list so that the choice is easy to compare and determine what initial (default) value to the value in the text field. In my drop down list change event, I have the following:

    var sNewSel = this.boundItem (xfa.event.newText);

    Switch (sNewSel)

    {

    case '1': / / Amy

    TextField1.rawValue = "Amy \n";

    break;

    Switch (sNewSel)

    {

    case '2': / / Bob

    TextField1.rawValue = "Bob \n";

    break;

    Of course that's not work one name shows at a time. Help, please!

    Thank you

    Don't know what the code is supposed to do, but basically, you want to add the name of the drop-down list the addition on the current value of the TextField? Why not use the dropdownlist display value directly? For example on the change event:

    if ( TextField1.rawValue == null )
        TextField1.rawValue = xfa.event.newText;
    else
        TextField1.rawValue += ( "\n" + xfa.event.newText );
    
  • How to restore the search bar drop-down list and the search engine icon today as it was in version FF 33?

    Some ealier time, I managed to go back to the drop down list via editing about: config and setting browser.search.showOneOffButtons to false.

    But yesterday firefox asked me to improve my search and I agreed. After that, I see ugly new tile instead of the drop-down list.

    How can I go back to find it is old menu drop-down appearance?

    "browser.search.showOneOffButtons" was a temporary pref which lasted from Firefox 34 upward through 42 of Firefox. The underlying code that have supported this preference is gone like Firefox 43.

    https://addons.Mozilla.org/en-us/Firefox/addon/classicthemerestorer/ has an option for old search (experimental) in Options of CTR > UI (1)

  • selection in the drop-down list makes the visible field

    I have two drop down fields, select from the first drop down field provides a list of the items contained in the second drop-down list. When an item in the second drop-down list is selected, I want a hidden field to become visible.

    I don't know how to write the script on the second menu drop-down to make the visible area. Here is the script that I have, which does not work:

    If (this.rawValue == 'ACD');

    {

    agentID.presence = 'visible';

    }

    If (this.rawValue is 'Agent');

    {

    agentID.presence = 'hidden';

    }

    Thank you

    M.Dawn

    HI Margaret,.

    Here is the corrected form https://acrobat.com/#d=D3yZytcriTw0pMp4S232Wg.

    You had semi colon after the if statement (which was throw). Also, I've shortened the reference to the agentID object:

    if (this.rawValue == "ACD") {
        agentID.presence = "visible";
    }
    else if (this.rawValue == "Agents") {
        agentID.presence = "hidden";
    }
    

    Good luck

    Niall

  • Drop-down list LOV shooting required field validation

    Hello

    I use Jdev 11.1.1.6.
    My VO is based on entities. I have 3 domains in this VO as F1, F2, F3
    3 fields are required.
    F1 has Combo Lov-based model implemented. List attribute LOV lookupId returned to F1 and the attribute List lookupDesc at F2.
    F2 is mandatory and can be changed. Idea is that the default text returned by lov and then user can update the description.

    Scenario 1: does not work >
    During execution, in mode, create when I try to select a value for this lov combo, it triggers the validation of required field for F2 (only for F2 and F3 not) and does not display the list of values. I can't do to show the list to enter some data in F2.
    < af:inputComboboxListOfValues > a autoSubmit = 'true' and immediate = "false" and a partialTriggers F2 = "id of F1".

    Scenario 2: < work >
    For test purposes, if I do unalterable F2 it works perfectly but F2 is editable and mandatory as well.
    < af:inputComboboxListOfValues > a autoSubmit = 'true' and immediate = "false" and a partialTriggers F2 = "id of F1".

    Scenario 3: < work >
    On other pages, I've implemented combo lov where the lov is implemented on the reference field and the return value only the Id column and not in any other field. This scenario works perfectly, even with the mandatory fields on the page.
    < af:inputComboboxListOfValues > a autoSubmit = 'true' and immediate = "false".


    Thank you
    JAI

    Try to remove F2 partialTrigger (a partialTriggers = 'F1 id'),
    and join valueChangeListener on F1, in which you can refresh partially F2 (in code)
    Of course, do autoSubmit F1.

    Scenario 1:
    During execution, in mode, create when I try to select a value for this lov combo, it triggers the validation of required field for F2 (only for F2 and F3 not) and does not display the list of values. I can't do to show the list to enter some data in F2.
    a autoSubmit = 'true' and immediate = "false" and a partialTriggers F2 = "id of F1".

  • How to use spawning with a drop-down list and a table area

    Hello

    I have a form that I need to build pages.  As it is now, I have a table in document and a drop-down list box.  When a selection is made in the drop-down list box, the StateAmt field is filled with the table.  This set works fine now, but I need to be able to make this code work with pages having engineered and need a bit of help.

    It's my javascript document:

    var gState = new Array //Create a reference to a new array

    load the table with quantities for each State

    gState ['AL'] = 40

    gState ['AK'] = 40

    gState ["AR"] = 40

    gState ["z"] = 25

    gState ['CA'] = 25

    .. .and so on, I deleted the most to make the shorter script here

    It's my script custom shot to a combo box "gstate" (FYI, I've added the initials of the State in the tab options in combo box)

    var stateamt = this.getField ("G876. StateAmt')

    If (event.changeEx to gState)

    stateamt. Value = gState [event.changeEx]

    This works very well for one page, but when I add another page (model laid) nothing happens after you make a selection in the drop-down list box.  I don't know I need to edit the script due to spawning change the domain names on each page, but I don't know how.  I tried to rename the combo gState1 and using this script (which does not work)

    Fna var = event.target.name.split(".");

    var fp = fna.length > 1? "fna [0] +". ' ' + fna [1] + ". » : » « ;"

    var stateamt = this.getField(fp_+_"G876_StateAmt").name / / (this is G876. StateAmt in the original formula)

    var = this.getField(fp_+_"gState1").name //(this is gState GST on the original form)

    If (event.changeEx in GST)

    stateamt. Value = gst [event.changeEx]

    If anyone can help me with this, I would be very grateful.

    Thank you

    Lisa

    I fugured it myself. It works:

    Fna var = event.target.name.split(".");

    "var fp = fna.length > 1? fna [0] +". ' ' + fna [1] + ". » : » « ;"

    var stateamt = this.getField (fp + "G876_StateAmt")

    If (event.changeEx to gState)

    stateamt. Value = gState [event.changeEx]

    I didn't totally understand the script and trying to change the wrong part.  It is still using the gState table and I needed to change the text box to get the information in the table.

  • drop-down list and using the selected command to select the fill element

    Hi I have a menu drop down being populated by a mysql table, the drop-down list works fine with reading and updating, but I wish I had the mysql stored id to select from the drop-down list on the edit page.

    I have the following code, but I can't point to be selected?  I think it is because I have not coded if statement properly.

    < select name = "stand_id" >
    <? PHP
    $stand_set = getall_stands();
    While ($stands = mysql_fetch_array ($stand_set)) {? >}
    <? PHP if (isset($_POST['stand_id']) == $url_show ['stand_id']) echo ' selected = "selected".
    « ' ; ? >
    "< option value =" <? PHP echo $stands ["stand_id"];? ' > '.

    > <? PHP echo $stands ["stand_descrip"];? > < / option >
    <? PHP}? > < / select >

    Any help would be really appreciated

    Horsemad Gilly wrote:

    the argument would be compared with $url_show ["stand_id"], ["stand_id"] $stands and then selecting the $stands ["stand_id"]

    selected = "selected".

  • Demanding of the drop-down list in CFMX form fields

    Required form fields in Coldfusion MX 6 help with HTML forms for that I use the following method:

    -a hidden field that has a name attribute composed of the name of the field and the suffix '_required '.

    You can use this technique with CFML and HTML tags form. If the user leaves the FirstName field empty, ColdFusion rejects the submission of form and returns a message informing the user that the field is required. You can customize the contents of this error message.

    For example:
    To require that the user enters a value in the field FirstName for a HTML input tag, I use the following syntax:

    < input type = "Text" name = "FirstName" size = "20" maxlength = "35" >
    < input type = "hidden" name = "FirstName_required".
    value = "You must enter your first name." >

    This is a nice, simple, solution non-javascript. However, it seems to only work for text fields and entered radio, not the drop-down lists. Is there a way to the same demand of the drop-down lists in the form? (I prefer not to have to resort to additional javascript validation)

    I used it with some fields.


    The issue here is that if you have any tag "selected" option
    even an empty option "Select a value" type, this selection has been
    finished and he will not raise a validation error.

  • How to fill out a drop-down list on the selection of items in another drop-down list using adf 12.1.3

    Hello

    I have a page that has the load drop-down lists and a "submit" button. The first drop down menu got filled using query based VO (IE read only VO) for LOV. The requirement is as below

    -on the selection of an element any in the first drop-down list, the user must fill the second dropdown.

    -Once the second dropdown is completed, the user can select element in the second drop-down list.

    -capture the second drop down menu items value selected in the method of action of the click on the submit button.

    Any help in this scenario will be useful.

    ---

    Rabindranath

    Sameh salvation,

    Thanks for the reply. Your code

    1. DCIteratorBinding iter is BindingContext.getCurrent () .getCurrentBindingsEntry () .get ("iteratorNameInPageDef") (DCIteratorBinding);.
    2. Object secondDropdownValue = iter.getCurrentRow () .getAttribute ("AttributeName");  has been really helpful to get the selected value.

    Thank you very much.

    ---

    Rabindranath

  • How the auto fill a field based on the drop-down list unless the specific item is selected

    Hi all

    My apologies if I posted this in in the wrong place, but I am new to these forums, JavaScript and Adobe LiveCycle.

    I am trying to build a form using LiveCycle Acrobat but have problems with the drop-down lists.

    Inititaly I just wanted to fill in the fields in a table based on a matching menu selection dropdown in another table.

    I used the following code and it worked fine:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    The problem is that now I want the code above works UNLESS one of the items in the drop-down list is enabled specifically in this case, I want the text box in the other table to display a message such as "Details of the entry in the field below.

    I tried to create an If Else statement using the following code:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    If (fFrom.item (i) .rawvalue = "Option 3") {}

    fTo.item (i) .rawValue = "enter the details in the field below.

    }

    else {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    }

    The code now filled the field with "Enter the details in the field below" any item I select in the drop-down list.

    Your help is greatly appreciated.

    See you soon,.

    ozzy_q

    Hello

    You use .rawValue in the change event. This will cause problems because the selection of the users has not received .rawValue from the drop-down list at the time when the change event is triggered.

    Move your script as it should to the output of the dropdown event.

    Hope that helps,

    Niall

  • Drop-down lists of the fill of the text fields on a different page from the drop-down list.

    Hi all

    I have a form with multiple pages. The first page contains a number of drop-down lists. These lists, drop-down list when the option is chosen, must complete a field text on another page. I can get the drop down menu to populate the text field when it is on the same page, but as soon as I move the text field to another page, the script does not work. Can anyone offer a solution? I used javascript on the changes to the scripts.

    Every time reference you the other object... so I guess in the code located on the DDlist.

    Paul

  • LiveCycle: How to select a drop-down list and fill in a text field.

    I have a PDF on Adobe livecycle 8.0 that if selected will auto fill the field area:

    GoalDropDownList: has points:

    People with disabilities

    Functional

    Impairment

    I would like that when disability is chosen this GoalTextField show:

    Patient will return to the previous level of function.

    When functional is chosen GoalTextField to see the

    Patient able to stand 5 minutes

    When the disability is selected GoalTextField to see the

    Patient has full range of motion

    Any help would be appreciated.

    I'm new so can you include in java script where it must go out, enter, etc..

    Thank you all.

    In fact I don't know how to show a picture of this to illustrate what someone knows how?

    Write the code javascript next to the drop-down list in the change event.

    var

    selectedValue = xfa.event.newText;

    If

    (selectedValue is 'Disability')

    TextField1.rawValue

    = "Patient will return to the previous level of function.";

    on the other

    if(SelectedValue=="Functional")

    TextField1.rawValue

    = 'Patient able to stand for 5 minutes.';

    on the other

    TextField1.rawValue

    = 'Patient has full range of motion. "

    Thank you.

  • Populate drop-down list with the results of several drop-down lists

    Hi, I am creating a form where the results of two drop-down lists then would fill another drop-down list. I'm not new to javascript, but I'm new to using it in Acrobat, so while I found some answers to this: Drop-down list fill in multiple fields of text. I don't know where to implement this, if it is still the right thing, I'm looking for pipes for

    Oh and I use Acrobat Pro DC. Any help would be much appreciated!

    OK, you can create a function at the level of the document that is called in the Validate event of each of the two first drop down menus, something like:

    Function in JavaScript to the document level

    function updateDropdown() {}

    Get references to the drop-down menus of entry

    var F1 = getField ("DropdownList1");

    var F2 = getField ("DropdownList2");

    Refer to the output drop-down list

    F3 var = getField ("DropdownList3");

    Get the values of input field, as strings

    var s1 = event.target = f1? Event.value: f1.valueAsString;

    var s2 = event.target = f2? Event.value: f2.valueAsString;

    Fill the drop-down list of output with the elements, or deselect it if either input dropdown is 'empty' (single topic area)

    If (s1 = "" |) s2 === " ") {

    F3.clearItems ();

    } else {}

    F3.setItems (["", s1, s2]);

    }

    }

    In the two first downs Validate event, call this function like this:

    updateDropdown();

    You can of course name the function you want. More information about the properties and the methods used in the code are available in the Acrobat JavaScript documentation.

  • 2 drop-down lists affect the recipients of the communication

    Hello

    I have 2 drop-down lists that I want the user to select names of and have their selections to determine 2 winners of the form when it is submitted by e-mail.

    I also have the forms to be submitted in PDF format, not XML data.

    Help, please.

    Kind regards

    Zone zero

    Hi Jessica,.

    So I won't get to it until the end of the week.

    However, it would be the same basic appaorach.

    If you select the drop-down list and in the object > palette field, you can type in the location of each item. That's what the user displays when they select the drop-down list.

    Then, in the object > range of connection, you must specify the actual email address for each location. It is the .rawValue from the drop-down list when a user makes a selection.

    The same e-mail button will then, as long as it refers on behalf of the drop-down list location. The existing example does not really show the approach, you just need to edit the object > parts using locations instead of the field names. Then change the e-mail addresses in the object > range of liaison.

    Good luck

    Niall

Maybe you are looking for

  • letturns turn into white color when scrolling

    As soos I scroll down on this page http://www.familiealberda.nl/descend.php?personID=I331 & tree = albtree1, the letters turn into white and make them almost invisible, which they should not (they stay blue). I got concact with the manufacturer of so

  • When I check IMIE it shows another I phone

    I use a 32GB Iphone 5 s gold one. But when I check the IMIE on google it ahows me totally different Iphone. It shows me 5 s Iphone 16 GB silver one? My Iphone is a fake? Or. What is wrong with him?

  • Can I connect two monitors to a PC Tower? cc = us

    Can I connect two monitors to a PC Tower?

  • snapshots of film

    I just upgraded my lap top of vista home premium to windows 7 Home premium. I scene/houses/sales and get ideas from the film inside. With vista, there is a feature called instant of film to take pictures during playback of a dvd. I can't find this fe

  • BlackBerry smartphones, what is to come for 4G

    No one knows if BB works on a 4G phone and if Yes when it may be available. I need a new phone and have considered to be the "BOLD" during the storm, but if there is something faster in the works (4 G) I'd rather wait and go for the most recent phone