Checking if a field is present

Hi,
I have a field "Other" in my webpage on few occasion and it is not presnt on other occassion.On clicking submit button how can i check if that field is presnet usng JSP?
thanks
vivek

U have to use JavaScript and in that script check the name of that field.

Similar Messages

  • How can I enforce automatic spell checking for selected fields of data entered by form users?

    I'd like to be able to enforce spell checking of selected fields in the forms that I've created using LiveCycle Designer 8.2 at run time, as opposed to design time.  I understand the version LCD 8 has a nifty new spell checker for form designers.  But I want to spell check the data entered by users using Acrobat Reader.  And I want to enforce the spell checking automatically on selected fields only.
    Presently it seems that users filling in my forms, must know how to manually right-click on each field and select "Spell Check" from the resulting dialog box in order to check for spelling errors in the data the user has entered in the form.
    I would like to discover a way to enforce spell checking in selected fields, just as I am able to do in forms created using Acrobat Pro.  In Acrobat Pro, I can set a property for each field to require spell checking.  but that feature seems to be missing in Livecycle Designer.
    I've check the Object model for XFA forms hoping that I might find a method I can call with a Javascript, to check spelling based on an event such as onBlur.  But I haven't found a spell check method.
    Am I missing something simple?  Is there a way to set each field to be spell checked when a user is filling in the form using the free Acrobat Reader?
    Our users are not sophisticated and requiring them to spell check each field separately just won't cut it...
    Any help on this will be greatly appreciated.
    Thanks!
    -David Bartholomew

    Hi David,
    Two things...
    At design time set the locale of the form to one that Acrobat spell checks. For example English (US) and English (UK) locales have spell checkers; however English (Ireland) does not. Check the Warnings tab to see if spell checking is supported for your locale.
    If your form locale supports spell checking then you can go to the button script below.
    If you form locale does NOT support spell checking then Stephanie has a great work around to force spell checking (http://forums.adobe.com/message/2233945#2233945).
    Bring a regular button onto the form and in the click event have the following:
    app.execMenuItem("Spelling:Check Spelling");
    Which will open the spell checker for all fields.  Thanks to Paul for extracting all of the accessible menu items (http://forums.adobe.com/message/1912914#1912914).
    Good luck,
    Niall

  • How to check which Table & Field is populating Data source

    Hi,
    My requirment is to check from which Table and Which field the data is extracted in the data source
    Data Source : 0MAT_PLANT_ATTR
    Field in Data Source :  MINBE
    Now i want to check from where (Table/Field) in R/3 is populating the Field MINBE in Data source 0MAT_PLANT_ATTR
    How can i do that

    Hi,
    Since you have the extract structure and the extractor, you can try Extractor Checker RSA3.Execute ST05 (activating SQL Trace), switch on the trace and execute the extractor checker. Once the extractor checker presents the results
    switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to retrieve data and present it to you.
    Note: Set the break point in the Extractor Function module.
    View the ST05 Extended Trace list. The Object name shows the Tables accessed.
    Hope this helps.
    Thanks,
    JituK

  • Check for required fields before locking subforms and submitting

    Hello,
    I have a 5-page form with many questions, to be completed by the original requestor and multiple approvers.  What I'm trying to do is have the original requestor's Submit button on p. 3 lock the input on the first three pages, but first check if all those fields have some content.  I currently have all the fields on pp. 1-3 set to "Required" in the object properties, but my script still locks them when there's is one empty one.  Here's what I have:
    //Lock portions of form
    Page1.access = "readOnly"
    Page2.access = "readOnly"
    Page3.access = "readOnly"
    //Save document, allow user to change name
    app.execMenuItem("SaveAs");
    //Submit via e-mail
    Submit_REAL.event__click.submit.target = "mailto:[email protected]" +
    "?subject=Subject text" +
    "&body=Message";
    Submit_REAL.execEvent("click");
    The automatic check for required fields happens after the pages get locked.  I would like the check to stop the process before it locks the pages.  Is there any way to check all at once that all "Required" fields on those pages have some content before allowing the script to proceed?  I know how to script it to manually check the 50 or so questions on those pages, but I would like to avoid that.  Thanks for any help.

    There are a few problems that I can see from the start. First, your code is going to pick up EVERY node that exists on these pages. Some of those nodes will not have a rawValue, and some will not have an actual name. As an example, you can take your code and create a text field to dump all of the names of the nodes that you get when you pull in all of the nodes this way. Here's an example:
    The result:
    Now, the question is, do you have a consistent naming convention for your fields that might be empty? That could be text fields, radio button lists, etc. For instance, I always prefix the names of objects in order to more easily keep track of what they are in scripts. Since I'm doing that, I can check the name of the field for tf, nf, rbl, cb, or whatever I have included to make sure that I'm checking an actual field before I check for things like rawValue.
    var nodeName = oNodes.item(nNodeCount).name;
    if (nodeName.indexOf("tf")>-1 || nodeName.indexOf("rbl") > -1 || /*check other field types*/) {
      //insert your code to check for empty answers here
    As for your line 7 issue. The syntax problem is that you've put extra parentheses in your if statement. Take out the parentheses that are just before and after the or "||".
    *This is my fourth attempt to reply. Something was going on with Adobe/Jive earlier, I suppose.

  • I need to add check whether 21 fields of a internal table are empty or not.

    Hello,
    I need to add check whether 21 fields of a internal table are empty or not.How can we write a code for the same wand what would be the correct syntax for it.
    I tried entering all the fields in the IF loop with AND condition but its giving syntax error.Perhaps this is because the lenght of the IF condition would be more than the allowed one.

    Hi,
    After the select quiery.
    If not itab is initial.
    Message 'Table is not empty'    type 'I'.
    Endif.
    Regards,
    Jagadish.

  • Field not present in the datasource

    Hi All,
    I want to bring the data for fields SCMNG of 0ART_SALES_ATTR into BW. When I check the datasource in RSA6(Double click on 0ART_SALES_ATTR) I am unable to find the field. But when I see the extract structure(BIW_MVKE_S) I can find the field in there. I checked the table  ROOSFIELD and found that the this particular field is set to 'A'(Field in OLTP and BW Hidden by SAP). How can I make this field available to extract the data?
    Please someone reply me soon..It is ver urgent!!!
    Thanks,
    RPK.

    Hi Manfred,
    I have edited it and set it to ' '(No Selection Pssible, Visibility set) and also saved it. But when I go back to rsa6 and double click on the datasource to check if the field has come there it is showing me a log with an error message saying "Units field MEINS for field SCMNG of DataSource 0ART_SALES_ATTR is hidden". What does this mean? Am I missing something or do I need to do any setting? I have checked for MEINS in the extract structure but it is not there in the structure at all.
    Regarding the code,if I want to use this, where should I write this?
    Thanks a lot,
    RPK.

  • How to check for missing fields in the file?

    Hi friends,
    I have a file to file scenario in which if any of the fields have a blank value, i have to put the file back in the source folder. If none of the fields are missing, the scenario should work normally.
    Can anybody tell me <b>how can i check for the field lengths</b> and if any of the fields are blank, <b>how do i send it back to the original folder.</b>
    Waiting for your responses,
    Divija.

    Hi Divija,
    >><i>how can i check for the field lengths</i>
    Since you need to basically check if the field has a value or not, i dnt think you need to check for the length of the field. Instead, you can use any one of the booloean functions available in the graphical mapping editor to check if the field has a value or not(filed value true or false)
    >><i>how do i send it back to the original folder.</i>
    You can maintain a flag variable in the target structure such that if any of the source fields donot have values, the flag's value becomes 1 else it remains 0.
    Now, you can check if the value of flag is equal to 1/0 in the bpm and accordingly send the data.
    If in case, you donot want the flag to come in the target file that is loaded/sent from the bpm in the end, i think even tat can be taklen care of.
    You can create two receiver communication channels and define one file adapter in each such that one has the destination as the actual target directory and the other has the original source directory as the destination.
    Regards,
    Sushumna

  • How to create Check table for Field Maktx

    Hi Experts,
    I am create one ztable with fields Mandt, Matnr, Maktx, Type1 and Type2 etc.
    I need a create a check table for field MAKTX.
    If i give material number the its the material description also.
    Thanks in Advance,
    Purnaneelu.

    Hi,
    Actually i am create one ZTable with fields Mandt ,matnr, maktx, type1,type2 and type3
    Now i am entry the data for matnr,type1,type2 and type3 .
    Now i am going to TCode SE16n material is not appears, but the requirement is shows the description also
    STOP USING I AM in each and every sentence...and try to correct your english...so that people can understand your problem easily.
    Hope this suggestion will help you going forward at the time of posting your question at SDN.
    Wram regards,
    Abhishek

  • How to check a checkbox field value in fw9 PDF form

    Hi,
    I got a PDF given form IRS (http://www.irs.gov/pub/irs-pdf/fw9.pdf). While creating a widget to this pdf form to sign it, I merged the custum data to those PDF form fields using API setMergeFields.
    All the data fields are merged fine except the checkboxes. I tried by passing the values to the merge_fields array as 'On', '1', 'checked', 'checkbox(checked)' but no luck
    What is wrong here in checking the chexbox field in this fw9 PDF or How to check a checkbox field in a form?
    Thank you,

    Hi Simon,
    I re-added and edited the fields of fw9 form by pdf printer. While doing so, I made fields as ready only so that, the data cannot be edited in the form through the widget but will be merged the data to fields only be the code. Wherein Im using the widget only for signature but not for form filling.
    Here, Im able to merge my custom data to all fields while creating widget but not to the fields of checkboxes. The checkboxes fields which are made ready-only are not allowing me to merge the value as checked by the API.
    Please help me,
    Thanks you,

  • SSO using Kerberso receiving "Integrity check on decrypted field failed (31

    I am trying to implement SSO for an application that is running on a WebLogic Server. I have flagged the AD Service user for DES encryption, added spn through setspn, created the keytab file, reset the password (to the same value), moved the keytab file, updated krb5.ini and krb5Login.conf accordingly, modified WebLogic startup command accordingly. When Users try to access the application, authentication fails, and I see “Integrity check on decrypted field failed (31)” error in the WebLogic logs. Any ideas ? I am attaching the related lines from the log below.
    <Sep 29, 2008 9:46:50 AM MDT> <Debug> <SecurityDebug> <000000> <Found Negotiate with SPNEGO token>
    Debug is true storeKey true useTicketCache false useKeyTab true doNotPrompt false ticketCache is null KeyTab is devmax01.http.keytab2 refreshKrb5Config is false principal is HTTP/[email protected] tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    KeyTab: load() entry length: 60
    KeyTabInputStream, readName(): DEV.DENVERWATER.ORG
    KeyTabInputStream, readName(): HTTP
    KeyTabInputStream, readName(): devmax01principal's key obtained from the keytab
    principal is HTTP/[email protected]
    EType: sun.security.krb5.internal.crypto.DesCbcMd5EType
    KrbAsReq calling createMessage
    KrbAsReq in createMessage
    KrbAsReq etypes are: 3 1
    KrbKdcReq send: kdc=dwdev01 UDP:88, timeout=30000, number of retries =3, #bytes=249
    KDCCommunication: kdc=dwdev01 UDP:88, timeout=30000,Attempt =1, #bytes=249
    KrbKdcReq send: #bytes read=1312
    KrbKdcReq send: #bytes read=1312
    EType: sun.security.krb5.internal.crypto.DesCbcMd5EType
    KrbAsRep cons in KrbAsReq.getReply HTTP/devmax01Added server's keyKerberos Principal HTTP/[email protected] Version 8key EncryptionKey: keyType=3 keyBytes (hex dump)=
    0000: 2F 02 76 AB 7F 8C B0 6E
    [Krb5LoginModule] added Krb5Principal HTTP/[email protected] to Subject
    Commit Succeeded
    Found key for HTTP/[email protected]
    Entered Krb5Context.acceptSecContext with state=STATE_NEW
    EType: sun.security.krb5.internal.crypto.DesCbcMd5EType<Sep 29, 2008 9:46:50 AM MDT> <Debug> <SecurityDebug> <000000> <GSS exception GSSException: Failure unspecified at GSS-API level (Mechanism level: Integrity check on decrypted field failed (31))
    GSSException: Failure unspecified at GSS-API level (Mechanism level: Integrity check on decrypted field failed (31))

    FYI The fix for this was to chang the value for -Djava.security.krb5.realm to be all upper case
    Once that change was made authentication passed
    Edited by: IDL on Jan 2, 2008 9:25 AM

  • How  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL)

    Hi Experts,
    Can you please tell me to how  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL) when saving of the shipment document.

    shipment cost calculation only on the Leg level and not on header level. Currently a lot of confusion happened after creating the shipment cost document and found that the status is u201CBu201D.
    now we intend to define detailed specifications to how to create this new user exit to update the shipment cost relevancy at shipment header.
    The main functionality of the user exit  to be created is to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL).can u pls tell how to do this.

  • Check partner authorization field

    Hello Gurus,
           The check partner authorization field is used to determine which partners are authorized
    to release against a contract. Should no check be performed, you may leave the field blank.
    where to set this check partner authorization field ?
    Many thanks
    Frank

    Hi
    You have to specify the release partners in the Customer master record of the Sold To. If you want to include the Ship To also as the release partner, then in the partner function tab of customer master specify the partner function as AW and give the customer number of the SH. Like wise you can add any no of SH.
    Thanks,
    Ravi

  • Check G/L field status group for Business area

    Hi, when I set the buiness area, I set field status group to required for BA field, the setting always check the BA field on accouting doc. But some G/L is automatic posted, always show "Business area is a required field for G/L account ...",
    Can you help me to slove, thanks

    Check the following issues
    1)Check the status of the other GL accounts field status for business areas.
    2)Check if there is any validation for GL accounts which can be given without business area.
    Hope this helps.
    Regards

  • How to set a condition to check if a field is been updated in workflow

    Hi,
    I have a scenario, wherein a workflow email will be triggered to a person only when a field (of type person/group) from the list is updated with the person's name. 
    Now I was trying to put a check condition to send the email only when the field is updated. 
    Is it possible in SP2013 workflow please ?
    Many thanks !
    Regards

    Hi Prajk,
    As I understand, you want to email a person only when the field is updated.
    You can do the following steps in SharePoint Designer.
    Go to your list, and create a helper column which has same column type with the field you need to check the updating.
    Open you site in SharePoint Designer and New workflow(Choose your List/Library).
    Create new variable to check whether the field is updated via comparing the helper column and the filed.
    Pick Send an Email to send email to the person.
    For more detailed steps, please refer to the following link:
    http://officepowerups.com/2013/07/09/send-email-when-specific-field-changes-in-sharepoint/
    By the way, the link is a demo of SharePoint Designer 2010, it also works for SharePoint 2013 workflow.
    Best Regards,
    Wendy Li
    TechNet Community Support

  • VBScript to check if the computer is present in Active Driectory

    I want to know is there any script to check if the machine is present in AD or not. Like say i have a machine named XYZ and i want to check if this machine is in AD or not.
    Using VBScript how do i do this?
    I am new to LDAP.
    \m/

    PowerShell
    Import-Module ActiveDirectory
    $computername = "xyz"
    If ((Get-AdComputer $computername | Measure).count -eq 1){"PC with name $computername are present in AD"}
    It must work on Win 2003/2008/r2/2012 DC with PowerShell v2, v3, v4
    If PC with name "xyz" does not exist you have error
    Cannot find object with identity 'xyz' under: 'DC=Contoso,DC=com'
    This is not VBScript and it will not work on WS2003 domains.  You are also using methods that make little sense.
    With the AD Cmdlets the following tests for specific a computer:
    if(Get-AdComputer xyz){
         'computer found'
    }else{
          'cpm[uter not found'
    There are learning resources here.  I recommend that you review them to see how to use PowerShell.
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Is there a way to block add-ons from being installed in Firefox, even add-ons coming from 3rd party sites?

    I work in a small call center and I have been working on trying to convince IT and management to use Firefox on the computers on the call floor. The main issue I have been having in convincing them, is that you can't block add-ons and things like tha

  • Price changes in Purchase order Line Items its displaying as"WF-BATCH"

    Hi Experts, I need some Information about Price changes in Purchase order Line Items,In PO Documents Price changes through this wf-batch has  changed the value of this row to xxx.xx USD, which does not correspond the invoice. If  i selected the Item

  • CF10, FB 4.7, Apache on MAC

    Hi All, I have couple days trying to configure this new MAC with FB 4.7 and ColdFusion 10. Alex was helping me to debug this issue but I still cannot figure this out, sorry no an expert in MAC or apache. http://apache-flex-users.2333346.n4.nabble.com

  • Arrear Amount Not adding in Total Earning

    Dear All, When we are generating pay slip by PC00_m40_cedt and with simulation PC00_M40_Calc_SIMU then Stat.net subs.adjustment i.e. /552 component is not adding in Total Earning field , please help from where we can also show that amount in Total Ea

  • Garbled audio on publish --what can I do?

    Before I get the standard answers that I've read in other posts: 1) I am working on the latest patch, 2) I imported .wav files (vs. .mp3s), 3) I can export the audio from the library and it sounds fine, 4) I have started in admin mode.