Set Field as Required

I would like to make a field required based on the which radio button is selected. Example:
     Next available date
     Specific date
     If the user selects specific date then the following date field need to be required.
Thanks you any assistance.
Parre

You can write in the click event of the radiobutton: Java Script
if(RadioButton1.rawValue == "Value to Compare"){
      SpecificDate.mandatory = "error";
else{
     SpecificDate.mandatory = "disabled";
Thanks
Srini

Similar Messages

  • Set field to required using javascript

    Hi Everyone
    I am looking for a method to set a field to required inside javascript. i.e.
    if (this.rawValue==1)
    { ConditionalField.Setattribute=required}
    else
    ConditionalField Setattribut=optional
    Thanks for your help
    Regards
    Meir

    Thanks Peter and sorry for the mixup. Fortunately I found a solution so no need to repost it even.
    Regards
    Meir.
    P.S. Keep up the good work on the forum!

  • Setting field/control "required" property with script

    Am using LiveCycle 8.2.1x and Acrobat Pro Extended 9.1.2.
    I want to change one control's "required" property based upon the user's input in/on another control (a drop-down list selection).  Can it be done with FormCalc or Javascript?  If so, how?

    Hi Brian,
    You can use the nullTest property.
    To make TextField1 mandatory
         TextField1.validate.nullTest = "error";
    To make TextField1 optional
         TextField1.validate.nullTest = "disbled";
    Regards
    Bruce

  • HCM F&P - How to set the field as Required based on drop down values

    Hi Experts,
    I have a requirement to set the Date field as mandatory when a particular value is selected in drop down list. I have already tried with MessageBox though it displays the error message but process moves further i.e. on clicking Check & Send button it throws an error message but still it moves further and i can see only Send button. Ideally it should halt there itself.
    Thanks & Regards,
    Jitesh Talreja

    Thanks for your valuable inputs
    Chintan
    I have already tried this. It only highlight the field with the red border but still allow to move further.
    Mukesh
    Yes, we can definately control this from the backend but that would be the last option i should execute. Ideally, this is something to be controlled in front end itself
    Poornima
    By setting the field attrbiute Required will set the field mandatory as a whole irrespective of drop down values or any other UI element.
    Regards,
    Jitesh Talreja

  • Setting form fields to required not working in Adobe Acrobat XI Pro

    This should be a simple matter. However, I'm stuck in a rut with it, and cannot seem to get out.
    I have created a form. All I need is for users to be prompted that they have to complete the form field when they try to tab or click out of that particular field where there needs to be information input. I have tried the following "on blur" java script code:
    if (!event.value) {
        app.alert("This field is required. Please enter a value.");
        event.target.setFocus();
    What continues to happen is when the user clicks out of that field, the error message comes up asking them to click "okay." The problem is that the error message does not go away after the user clicks it.
    What I've learned is that if you right click on a field and click "set as required field," it doesn't work in the way I need it to. In fact, it hasn't been working at all for me.
    Does anyone have a simple suggestion? I more than willing to try anything at this point.

    OK, so the custom calculate script for field B could be something like:
    (function () {
        // Get field values as strings
        var sA = getField("A").valueAsString;
        var sC = getField("C").valueAsString;
        var sD = getField("D").valueAsString;
        // Only perform the calculation if all fields are filled
        if (sA && sC && sD) {
            var sum = +sC + sD;
            event.value = sum;
            // Alert the user if the sum is more than A
            if (sum > +sA) {
                app.alert("Error message goes here");
        } else {
            // Blank this field if all fields are not filled in
            event.value = "";
    Instead of (or in addition to) an app.alert popup, you could place this message in a read-only form field, and clear it if there is no error condition.

  • How to set a signature field as 'Required' with selection of a Check Box

    I have a set of 3 check boxes and would like to set a unique combination of pre-existing signature fields as 'required' for each respective check box.
    Given Check Box names of Box1, Box2, Box3 and Signature Field names of Sig1, Sig2, Sig3, can someone provide example JavaScript for setting Sig1 and Sig3 as required upon a Mouse Up of Box 1?
    Otherwise, can someone let me know if this might be more trouble than it's worth?
    Thanks!

    Sorry to keep you waiting Greenstead - and thank you for responding.
    My need for this feature, however, has passed.
    I do have another question or two, but will post as a separate thread.
    Thanks again

  • Dynamically setting field attributes based on input

    Hi all,
    I am trying to see if it is possible to dynamically set field attributes depending on other fields.  For example, in screen 1100 of IQ01, I want to make it so that "Certification number" becomes mandatory if "certification status" = 1, and becomes optional if "certification status" = 2,3 or 4.
    Is this possible?  If so, how?
    Regards,
    D.

    Have you checked this
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/content.htm
    if your requirement is to do this in Tcode IQ01 then the above answer is not sufficient
    Edited by: Abhishek Jolly on Aug 15, 2008 5:41 PM

  • Setting field level security

    I have created a form in LiveCycle in which two fields (Header and an Image block) need to be editable by one user type (e.g. power user), but should not be changeable by the end users.  They will only be able to fill in other fields in the form.  So far I have only been able to set form level security.  Is there a way to apply security to just these two fields, perhaps requiring a password, so that the power user can update these two fields as needed?
    Thanks for any ideas you might have!

    Hi Diego,
    Thanks for responding.  We aren't using the LC PM module, so that takes one suggestion out of the running.
    We tried some Javascript we found on the Acrobat forum (see below for what we used) - using it as an action with a bookmark, but it didn't work.  The guy who wrote the script on that forum looked at our file and thought that the problem was likely because the form was developed in LiveCycle.  We are not Java experts (or even close!), so we have no clue where to start.  And unfortunately if we cannot find a solution for this dilemma, we will have to decline a project from a client. 
    So again, any thoughts or suggestions on where to go from here are greatly appreciated!
    (function () {
        // Get one of the fields in the group
        var f = getField("private.name");
        // Determine new readonly state, which
        // is the opposite of the current state
        var readonly = !f.readonly;
        var readonly_desc = readonly ? "deactivate" : "activate";
        // Ask user for password
        var resp = app.response({
            cQuestion: "To " + readonly_desc + " the fields, enter the password:",
            cTitle: "Enter password",
            bPassword: true,
            cLabel: "Password"
        switch (resp) {
        case "your_password": // Your password goes here
            getField("private").readonly = readonly;
            app.alert("The fields are now " + readonly_desc + "d.", 3);
            break;
        case null : // User pressed Cancel button
            break;
        default : // Incorrect password
            app.alert("Incorrect password.", 1);
            break;
    In this example, the fields that are controlled by this all have a field name prefix of "private", for example "private.name", "private.address", etc. This makes it easier to control the fields as a group, as I do in the line of code that begins: getField("private").readonly  If you don't use such a field naming convention, you'd have to have a separate such line for each field in the group.
    Replace "your_password" above with one of your own. The first and last lines are not necessary, but do prevent the needless creation of document-global variables, which is a good thing.

  • How to set field alignment in a table in jdev 11.1.2.3?

    hi,
    How to set field alignment in a table in jdev 11.1.2.3?
    eg: to diplay a number field in a table as right aligned.
    I have tried to set field(amount) VO UI Hint Format Type:Number; Format: 0000.00
    and jspx as flowing, but it doesnot work.
    Thanks.
    bao
    <af:column sortProperty="#{bindings.VO1.hints.Amount.name}"
    sortable="true"
    headerText="#{bindings.VO1.hints.Amount.label}"
    id="c44" width="60"
    align="center">
    <af:inputText value="#{row.bindings.Amount.inputValue}"
    label="#{bindings.VO1.hints.Amount.label}"
    required="#{bindings.VO1.hints.Amount.mandatory}"
    columns="#{bindings.VO1.hints.Amount.displayWidth}"
    maximumLength="#{bindings.VO1.hints.Amount.precision}"
    shortDesc="#{bindings.VO1.hints.Amount.tooltip}"
    id="it58"
    secret="false"
    inlineStyle="text-decoration:overline;">
    <f:validator binding="#{row.bindings.Amount.validator}"/>
    </af:inputText>
    </af:column>

    Works for me:
            <af:column sortProperty="#{bindings.EmployeesView1.hints.Salary.name}" sortable="false"
                       headerText="#{bindings.EmployeesView1.hints.Salary.label}" id="c7" align="right">
              <af:inputText value="#{row.bindings.Salary.inputValue}" label="#{bindings.EmployeesView1.hints.Salary.label}"
                            required="#{bindings.EmployeesView1.hints.Salary.mandatory}"
                            columns="#{bindings.EmployeesView1.hints.Salary.displayWidth}"
                            maximumLength="#{bindings.EmployeesView1.hints.Salary.precision}"
                            shortDesc="#{bindings.EmployeesView1.hints.Salary.tooltip}" id="it6">
                <f:validator binding="#{row.bindings.Salary.validator}"/>
              </af:inputText>
            </af:column>JDeveloper 11.1.2.3
    Salary is shown right-aligned.
    What happens if you get rid of your inlineStyle on the af:inputText

  • How to make a field as "Required" ?

    Hi,
    I have two fields: payment method and expiration year, both picklist.
    There are 5 values for payment method. Leaving one value say 'card on file'
    of payment method i want to make my expiratioin year a required field for any other value selected in payment method.
    For this 'card on file' , expiration year should be a normal field. This should happen dynamically . Can this be done through configuration or eScripting is required?
    Please help how this is to be done.....
    Thanks,
    Sara

    Hi Axel,
    I have tried writing the following code in applet's Applet_ChangeFieldValue method.
    if(field == "Payment Method" && value == "Credit Card")
                        var vApp = this.Name();
    alert(vApp);
    alert(this._applet.docName);
    var doc = eval(this._applet.docName);
    var file = doc.getElementById("Expire_yr");
    file.innerHTML = "<img src="images/icon_req.gif" alt="Code Validated field" border="0" space="0" hspace="0">Expiration Year";
    Here, i am just trying to test if for payment method "Credit Card" my Expiration year field is becoming mandatory or not.
    In Applet > Control > Expiration Year : for caption string ovverride i have written
    “<span id='Expire_yr'>Expiration Year</span>”
    in BC (Payments) i haven't checked the "Required" prop of Expiration year field.
    In field user property i have created a rec and set the name: Required and Value to IIF([Payment Method] == "Credit Card","Y","N")
    Still, not able to achieve the desired result,
    Please suggest something about the code..
    Thanks,
    Saira

  • Set Field Selection for Completion Confirmation

    I want to change the indicator of one field from "ready to input" to "required"..But i couldnt understand exactly the hierarchy under "Set Field Selection for Completion Confirmation"  tab in SPRO. there are 3 parts under that tab;
    1-PM: Confirmation - initial screen
    2-PM: Confirmation - list and detail
    3-PM: Confirmation - parameter
    and i also couldnt find the name of my field which is about "codes for causes"..
    Thanks...

    Russ,
      I don't think it could be accomplished through configuration or through Transaction variants.
    I think the simplest way to accomplish this would be by using one of the below user exits according to your needs.
    CONFPM02: Customer-specific entry checks 1
    CONFPM03: Customer-specific check by operation selection
    CONFPM04: Customer-specific entry checks 2
    The other option would be to use the Implicit enhancement functionality(If you are in EC C6.0 or above)  to modify the table control field attributes dynamically.
    Regards
    Narasimhan

  • Field STCEG required at FB01 (one-time vendor account)

    Hello,
    Does anyone know how to put the field STCEG required when posting, through FB01 or similar, to an one-time vendor account?
    Thanks!

    Hi,
    Account group field status determine the status while creating/ changing the master data.
    For posting, you can control via posting key setting or field status assigned to gl.
    As you need to make it as required only for one time vendors, so create a validation in OB28/ GGB1 for it.
    Regards,
    Gaurav

  • CR12 - Formula editor, why do I get message "A field is required here"?

    In both cases below, I get the error "A field is required here".  How do I sum a text column that has numbers in it?
    Sum(ToNumber({data.TextColumn}))
    ToNumber(iif(isNumeric({data.TextColumn}),{outbound_bol_detail.weight},"0"))

    Hi John,
    Your if statement is a bit off.  Try doing it this way instead:
    If NumericText ({data.TextColumn}) Then
        ToNumber ({outbound_bol_detail.weight})
    Else 0;
    Also, have a look in File | Report Options and turn on Convert NULL Values to Default.  It's possible you may have NULLs in the data that Crystal is having problems with. 
    Good luck,
    Brian

  • Short Dump while making a fields as required in BDT object screens

    Hi,
    I'm making a field as "required" by checking the required button on that field in the BDT screen.
    But am getting a short dump when I'm trying to use that screen.
    It seems like some data is getting converted to bad format due to this (am not fully sure about it.)
    Any idea on this.
    Thanks & Regards,
    Vipul.

    Hi Pinaki,
    The entire functionality is working absolutely perfect if I dont check that field as "Required" .
    I'm not sure if I'm missing some customising or is it a problem with BDT.
    Thanks & Regards,
    Vipul.

  • Using javaScript to change a field from required to not required

    Hi,
    I have what seems like a simple question .I would like to know if it is possible to have a function call from my jsf code to a javascript function which could change a text field input from required to not required .
    I can do this through the server but would prefer to do it in the front end .
    e.g . I have a pull down list and when I click on one of the values it calls a function in javascript which changes a text field from required to not required .
    Hope this is clear .
    Thanks for your help.

    Instead of having the field required on the component defeiniton, put that requirement on code.
    Either way you can't do that on javascript. If you could do that then you could fool the aplication...

Maybe you are looking for

  • ClassCastException in ResourceMultiParentClassLoader

    Hi, I have created two EJB modules to be used in PI scenarios. EJB-1 gives following exception (while EJB-2 works fine) --> Both EJBs are stateless and implement Module interfaces as their local, localHome, remote, home. Error: java.lang.ClassCastExc

  • Podcasts broken in 9.2 with error "A duplicate file name was specified"

    Ever since the 9.2 upgrade my podcasts have not been able to update. The following error message is displayed when I click the icon next to the podcast: +There was a problem downloading "... podcast name ...". A duplicate file name was specified.+ Di

  • Sporadic behavior of Cube in SSAS 2008 R2

    Hi All, I am working on a MS BI project. The details and the issue are as follows: Issue: Everything works fine as usual when the cube is processed and reports are deployed. After some days, the reports start returning incorrect data. I cannot say in

  • How do I download files with .dds extension in Adobe Elements 11?

    I am trying to download a file with a .dds extension but I can't open the file. I've been told this can be down on the Adobe Photoshop element version 8, so I would assume version 11 can do it as well. Do I need a plug in to do this and if so, what k

  • T440 RAM Upgrade Missing

    Hello all, So a little while ago I upgraded the RAM in this T440 with a 8GB stick. Everything was working fine. I had all 12GB working perfectly. At some point in the last three weeks I noticed that the laptop was running slow with Chrome and Photosh