Text validation

I have an interactive on line form.  I am trying to lock down a text field to Alph only.  Where do I find this option.

The following client-side JavaScript, attached to a text field exit event, will validate the characters a-z (ignoring case).
// form1.page1.subform1.firstName::exit - (JavaScript, client)
var regExp = /[^a-z]/i;
if (regExp.test(this.rawValue)) {
    xfa.host.messageBox("First name can contain the characters a-z, only.");
Steve

Similar Messages

  • Function returning error text validation

    Hi,
    I have a page where i can insert/update user, organisation, responsible.
    Organisation can be nullable.
    Only one user at a time can be responsible for a organisation.
    To check this responsible validation i made a function returning error text validation as follow:
    BEGIN
    FOR c IN (SELECT usr_spa
    FROM kpi_users
    WHERE usr_org_id = :p22_usr_org_id
    LOOP
    IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
    THEN
    RETURN 'A user is already responsible for this organisation'||'!';
    END IF;
    END LOOP;
    END;
    The validation works fine.
    But it goes wrong when i want to insert a new user, without assigning him to an organisation.
    I get following message:
    ORA-01722: invalid number
    ERR-1024 Unable to run "function body returning text" validation.
    Can someone please help me solve this problem?
    Thanks

    Hi,
    try:
    BEGIN
    FOR c IN (SELECT usr_spa
    FROM kpi_users
    WHERE usr_org_id = nvl(:p22_usr_org_id,-1)
    LOOP
    IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
    THEN
    RETURN 'A user is already responsible for this organisation'||'!';
    END IF;
    END LOOP;
    END;This assumes that :p22_usr_org_id could be null and converts this to -1 (pick another default value if this may exist as an id). It is possible that the statement would otherwise be seen as WHERE usr_org_id = null which is invalid.
    or you could do:
    BEGIN
    IF :p22_usr_org_id IS NOT NULL THEN
    FOR c IN (SELECT usr_spa
    FROM kpi_users
    WHERE usr_org_id = :p22_usr_org_id
    LOOP
    IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
    THEN
    RETURN 'A user is already responsible for this organisation'||'!';
    END IF;
    END LOOP;
    END IF;
    END;As this would stop the validation running if the :p22_usr_org_id is null.
    Or, you could just make your validation conditional on p22_usr_org_id not being null?
    Andy

  • Text validation widget bug?

    I have used text validation in a table body like this:
    <table style="width:20%">
    <tbody id="login_val">
    <tr><td>E-Mail</td><td><input
    name="login" id="login" type="text"></td></tr>
    <tr class="textfieldRequiredMsg"><td
    colspan="2">Enter your login E-Mail.</td></tr>
    <tr class="textfieldInvalidFormatMsg"><td
    colspan="2">Enter a valid E-Mail address.</td></tr>
    </tbody>
    <tbody>
    <tr><td></td><td><input
    name="submint" id="submit" type="submit" value="Log
    In"></td></tr>
    </tbody>
    </table>
    Initialised with: var login_val = new
    Spry.Widget.ValidationTextField("login_val", "email",
    {validateOn:["blur"]});
    If there is an input error - the error table-row shows up as
    expected but the first td of the first row (the one showing the
    word 'E-Mail') suddenly has a colspan"2" on it too. (tested only in
    Firefox)
    Do I miss something here? Or is this a bug? Feature???
    Cheers from down under.

    Hello,
    I think the problem in this situation appears because of the
    CSS definition. The default definition right now to display an
    error message is:
    .textfieldRequiredState .textfieldRequiredMsg,
    display: inline;
    color: #CC3333;
    border: 1px solid #CC3333;
    When this class is used with table rows the results are
    unexpected because the table rows have a special status and cannot
    normally be displayed as an inline element. Unfortunately your
    scenario hit a browser limitation in the CSS implementation. The IE
    because it doesn't have yet support for display:table as the CSS2
    specify will render "correctly (?!)" the display:inline or
    display:block on table row elements. FF because it has correct
    support for display:table-row will work incorrectly with the inline
    as the specification mention.
    The only solution I see is to manipulate the CSS height
    property, margin and padding instead of manipulating the display if
    you want to continue to use the table structure above.
    Regards,
    Cristian

  • Import Manager Usage : Approaches for developing Import file structure and text validations

    Hi Experts,
    We are having 50+ import maps. We have provided option to users to drop the files for data import. Currently Import Manager(7.1 Sp08) does not have capability of pre-import validation of file data such as
    a. file structure - number of columns specific to import map
    b. file text validations - special characters, empty lines, empty cells
    c. Uniqueness of the records in the file
    For this, we are planning to build temporary folder(port specific) in which user drops in the file. We use the custom development to do above mentioned validations and then move the files to actual import ports.
    Please let us know if you have worked on similar requirements and how you have fulfilled such requirements.
    Regards,
    Ganga

    Hi Ganga,
    Assuming you have a well defined xsd and are getting valid xmls from source in the Inbound Port of MDM. Also,you have a Primary key in form of External ID (say).
    So just by making and defining a XSD you get most of what you want in your questions a and b.
    Now if you wish to use PI to drop files in the inbound port then you can build all the validations in PI itself and you would not need Staging table.
    Otherwise,you can have another table (preferably Main table) in the same repository or other dummy repository where records are created on import based on External ID.
    Here you can launch an MDM workflow on import of these records and run assignments to replace unwanted characters and Validations to give error for rejecting some records based on the data quality level desired.Once unwanted characters are removed and data is validated it can be syndicated using a syndication step in the Workflow.So records which fail are not sent and which pass are sent to a outbound port.
    From the outbound port PI or some other job can pick the file from this outbound folder and drop to Inbound folder of the same repository which imports to the required Primary Main table.Here again you have the option to leverage validations in PI and further check if data is fine.
    Once this activity is done you can delete the records from the staging table.
    Thanks,
    Ravi

  • Text Entry Box - Free Text & Validation

    Good day:
    I am a user of Captivate 4 and have a question in regards to text boxes and validation.  I am attempting to create a simulation covering signing into a web-based application.  The user needs to input a username and a password.
    I am attempting to create a slide that has 2 text boxes (one for username field and one for password) and 1 click box (submit).  I want to make it so that the user MUST type something into each text box before being aloud to click on submit button.
    I know that I can create it so there is NO validation however I don't want to have the clip continue to the next slide until they have typed something into each of these boxes.
    Ideally I would like the slide layout to follow this flow.
    1. Pop-up box with instructions to "Log In"
    2. Cursor starts in first text box.
    3. User inputs data in first text box
    4. Either Hit tab to advance to second text box OR click on the next text box.
    5. User inputs data into second text box
    6. Either Hit enter or click on Submit Advance to next slide.
    Is this possible?  If so how can I set this up?
    Thanks in advance for your help.
    Brad

    Hi Brad,
    This is possible. I have created a sample project in Captivate 5.0. You could open it if you have Cp 5.0 else let me explain this in steps so that you could try it in Cp 4.0 as well.
    https://acrobat.com/#d=pj-MtFnXsjZHv8BU6IFqCg
    Steps in Cp 4.0:
    1.Insert a Text Caption from 0 to 2.5 secs saying log in etc.
    2.Put a Click Box on top of Text Caption at say 2 secs.
    3.Insert a TEB for username(Uncheck the Success/Hint/failure Captions).Time from 2.5 to 5 secs. On the success set it "No Action".
    4.Insert a TEB for password(Uncheck the Success/Hint/failure Captions) having "Submit" button.Time from 2.5 to 5 secs. On the success set it "No Action".
    This should do.
    Thanks,
    Sikandar

  • Removing submit requirement from text validation field

    I am creating a form and I am using a validate text field. If
    a customer wants to participate in future surveys, they will enter
    their email address in the validate text field, but if they choose
    not too, they can leave the field blank. What I want is to make
    sure that the email is validated, so I checked the onblur option so
    it checks it when I leave the field. The problem is when I click
    the submit button, it still checks the field and requires me to
    enter an email address still.
    Is there a way to alter the SpryValidationTextField.js file
    so that it will check the email address on onBlur or onChange and
    not when I click the submit button??

    Hi Nance
    This reply would not be a perfect answer but might explain the logic behind it.
    Here it is:
    If you are retrieving HTML text from database you can create a function to remove html code from the text matter.
    You simply need to look for the start <HTML> tag as a word and then for the end </HTML> tag as a word. Note down the start charater position for <html> and end character position for </HTML> and then simplye remove the content from the text by concatinating the data before the <html> tag and after the </html> tag.
    or if you want to remove only the tag part as <html> and </html> from text and save the contents inside these tags, that would also be possible with the logic stated earlier in this post.
    I would try to create such function and will post it here if succeeded.
    Regards
    Nikhil

  • Apex_item.text Validation Help

    I have a page, that contains a PL/SQL region, here is a snippet of that region:
    <p>
    1.BEGIN <br>
    2. l_vc_arr2 := APEX_UTIL.STRING_TO_TABLE(:P7_SELECT_PARTS);<br>
    3. FOR z IN 1..l_vc_arr2.count LOOP<br>
    4.<br>
    5. select item_name into v_item_name from v_shuttle_list where part_id = l_vc_arr2(z);<br>
    6. select flag into v_flag from v_shuttle_list where part_id = l_vc_arr2(z);<br>
    7. htp.p(apex_item.hidden(1,l_vc_arr2(z))); <br>
    8. htp.p('   Qty'); <br>
    9. htp.p(apex_item.hidden(4,v_flag)); <br>
    <b>10. htp.p(apex_item.text(p_idx=>3,p_item_label=>'Quantity',p_size=>'5')); <br></b>
    11. htp.p(apex_item.display_and_save(2,v_item_name));<br>
    htp.p('<br>');<br>
    END LOOP;<br>
    </p>
    Based on the values from a previous page, it creates a few items. My problem is with <b>line 10</b>. I need somehow to have a validation on this item. So when they hit next, if it is blank, it gives them an error. I can do this easily with a Not Null validation on an item like :P16_ITEM_NAME, but with it being a item not yet existing until the page is created, I am a little confused on how to accomplish this. Any help?
    <p>
    Thanks!<br>
    Chrissy</p>

    Hi,
    You can crete a (sql-) process "before hader"
    select 'something you need' into :P16_Item_name from dual
    Leo

  • How to create a "Command Line"/"Text Validation"

    I want to create a command line like the picture. I'm using "Input Text" method for text. Variable name is "myText", Instance Name is "line".
    How can I use "if" in input text like this:
    Command name is: exit, if user wrote "exit" command, exit the flash app.

    This is a pretty old thread (I know I came across this while searching for something similar recently), but I figured I'd throw this out there in case other people might find this useful. As I write this, JavaFX's latest version is 1.3... which may have added the needed functionality since the last post.
    You can now create a multi-line text area using a TextBox and by specifying the nubmer of lines and setting the "multiline" value to true. It may not offer all of the same functionality as JTextArea, but it did the job for what I needed... newlines by pressing enter, scrollbar if text surpasses height, etc.
    Here's a simple example:
    Group {
       content: [
          TextBox {
             text: "This is a multi-line textbox"
             lines: 10  // <-- this may/may not be necessary depending on your situation. Default is 5.
             multiline: true
    }Edited by: loeschg on Jul 29, 2010 2:59 PM

  • Oracle Text valid file formats

    We are using Oracle Text 10g release 1. In the Oracle Text documentation in appendix B it lists all the supported file formats Oracle text can filter and turn to text. Does anyone know whether there is a document that not only has the supported file formats but also the file extensions of these file types?

    Hi,
    It depends on your release of 10gR1 as to the filter you'll use. At 10.1.0.4 the Verity KeyView filter is used. Prior to that (in 10gR1) the INSO filter was used. This determines the file formats that are supported.
    Depending on your release, you can 'Google' for either INSO filter or Verity KeyView filter and get more details on the filters.
    Thanks,
    Ron

  • User Exits for Purchase order Header Text Validation

    Hi Experts,
    I need user exit for validate a  Long text in Purchase order header data for a Particular Doc type.
    We are using 4.6 B so badi is not available .
    So pls tell me user exit for the same or any other method as i was unable to find user exit for this scenario.
    Note :  This valiadation should trigger whhile creating  PO.
    Warm Regards
    Santosh Kumar
    Edited by: Santosh L on Mar 19, 2010 9:58 AM

    i have used concept of global memory through call stack

  • User Exit  / BADI for Delievry Text Validation

    Hello Gurus,
    I have one requirement to Validate if the Header Text has been entered in one of the Text ID and if the same is blank I will have to make hard coded error message.
    Please provide me with the Table name or Structure name which holds the value of Header Texts entered in Delivery.
    I will appreciate for the help.
    Regards
    Saurabh

    any standard text are stored in table STXH
    to get data from that table you will need TDID , td name, tdobject

  • Date validation

    Hi ,
    I have a created an textbox with date picker as (dd-mon-yyyy) .
    Now i want to create a validation on it for the format (dd-mon-yyyy) .
    I have created a pl/sql code with type "function returning error text".
    Begin
    If :P4_END_DATE IS NOT NULL THEN
    if :P4_END_DATE <> to_date(:P4_END_DATE ,'DD-MON-YYYY') then
    return 'END DATE should be in "DD-MON-YYYY" Format';
    end if;
    END IF;
    End;
    When i type in like 20-NOV-08 it gives error as 'START DATE should be in "DD-MON-YYYY" Format',
    but when i change month like 20-11-2008 , it actually gives error
    ORA-01843: not a valid month
    Error ERR-1024 Unable to run "function body returning text" validation.

    Hello,
    You have duplicated this post, see my answer here -
    Re: Date validation in "DD-MON-YYYY" Format,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Date validation in " DD-MON-YYYY"

    Hi ,
    I have created a textbox with date picker as (dd-mon-yyyy) .
    Now i want to create a validation on it for the format (dd-mon-yyyy) .
    I have created a pl/sql code with type "function returning error text".
    Begin
    If :P4_END_DATE IS NOT NULL THEN
    if :P4_END_DATE != to_date(:P4_END_DATE ,'DD-MON-YYYY') then
    return 'END DATE should be in "DD-MON-YYYY" Format';
    end if;
    END IF;
    End;
    When i type in like 20-NOV-08 it gives error as 'START DATE should be in "DD-MON-YYYY" Format',
    but when i change month like 20-11-2008 , it actually gives error
    ORA-01843: not a valid month
    Error ERR-1024 Unable to run "function body returning text" validation.
    Edited by: Vaibss on Nov 25, 2008 2:09 AM
    Edited by: Vaibss on Nov 25, 2008 2:10 AM

    Hello,
    Duplicate post -
    Date validation in "DD-MON-YYYY" Format,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Date validation in "DD-MON-YYYY" Format,

    Hi ,
    I have created a textbox with date picker as (dd-mon-yyyy) .
    Now i want to create a validation on it for the format (dd-mon-yyyy) .
    I have created a pl/sql code with type "function returning error text".
    Begin
    If :P4_END_DATE IS NOT NULL THEN
    if :P4_END_DATE != to_date(:P4_END_DATE ,'DD-MON-YYYY') then
    return 'END DATE should be in "DD-MON-YYYY" Format';
    end if;
    END IF;
    End;
    When i type in like 20-NOV-08 it gives error as 'START DATE should be in "DD-MON-YYYY" Format',
    but when i change month like 20-11-2008 , it actually gives error
    ORA-01843: not a valid month
    Error ERR-1024 Unable to run "function body returning text" validation.

    Vaibss wrote:
    Hi ,
    I have created a textbox with date picker as (dd-mon-yyyy) .
    Now i want to create a validation on it for the format (dd-mon-yyyy) .
    I have created a pl/sql code with type "function returning error text".
    Begin
    If :P4_END_DATE IS NOT NULL THEN
    if :P4_END_DATE != to_date(:P4_END_DATE ,'DD-MON-YYYY') then
    return 'END DATE should be in "DD-MON-YYYY" Format';
    end if;
    END IF;
    End;
    When i type in like 20-NOV-08 it gives error as 'START DATE should be in "DD-MON-YYYY" Format',
    but when i change month like 20-11-2008 , it actually gives error
    ORA-01843: not a valid month
    Error ERR-1024 Unable to run "function body returning text" validation.The call to 'to_date' is raising an exception when it tries to convert your date, standard PL/SQL exception handling takes over and the rest of your code is ignored.
    You could try:
    declare
    pragma exception_init(invalid_date,-01830);
    l_dummy date;
    Begin
    If :P4_END_DATE IS NOT NULL THEN
    l_dummy := to_date(:P4_END_DATE ,'DD-MON-YYYY') then
    END IF;
    exception
    when invalid_date then
    return 'END DATE should be in "DD-MON-YYYY" Format';
    End;
    but even that will not check that the user actually used your desired format - the to_date can be quite flexible e.g. accepting separators other than the '-' that you have declared. In fact, the above would only catch the user entering a 'date' that is shorter than the format string - changing the 'invalid_date' for 'others' would capture more (all!) exceptions.
    You probably want to look at using regular expressions to perform the format validation.
    Edited by: Andy Hardy on Nov 25, 2008 12:29 PM

  • Language specific text extractions

    Hello experts,
    In a fresh BI system, if i have to extract data for 0customer_text for eg with language selection, what r the detailed steps for doing it?
    the datasrc does not have a langu field. i want to extract only german records in BI? how do i enable this?
    Similarly do i need to do this for all the other text datasrces which dont have langu field?
    the configurations are done on a system with English language logon but the data to be extracted is in German!!
    Detailed steps would be appreciated.
    thnk you

    Hi,
    0CUSTOMER is not language dependent; it has only one text valid for any language.
    In general, when your DSource doesn't have the language dependent field (SPRAS) your IObj texts will be language independent...
    Independently of the logon language, the customer texts will show up....
    hope this helps...
    Olivier.

Maybe you are looking for

  • How do I find my previous ITunes library.

    I bought music for the first time from Itunes and now that is the only music in my library. When I connect my Ipod Nano to the computer, it says it is synced to another Itunes library, but I don't know where that is?? I want all my music back in 1 li

  • Active Directory Rename

    I am running into an issue with renames for Active Directory in SIM 8.1.12. I am using the standard RenameUser View and setting the identity and and accountId. The first time I run through the workflow everything works as expected. Any future rename

  • How do I delete a sparse bundle in Time Machine?

    I backup two computers over a home wireless network to a Time Capsule. But there are three TM sparsebundles on the TC; one is from a computer that is long gone. I need to create space on the TC as I got an error message stating that; I have a new dis

  • PLAINHTTP_ADAPTER ATTRIBUTE_CLIENT HTTP client code 400 ICM_HTTP_CON_FAILED

    Hi Experts, Ssytem details:PI7.1, While processing messages  from source system to PI system. we are getting the below error : PLAINHTTP_ADAPTER ATTRIBUTE_CLIENT HTTP client code 400 ICM_HTTP_CON_FAILED The messages get stuck while processing from so

  • Adobe form not printing on A4 paperbut printing on letter format

    Hi All, We have made a form on letter format and its working fine. However when treid tofire output to A4 size paper its not working. Can some please  help me with this,its not that I can change the paper size in my form from letter size to A4. I wan