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

Similar Messages

  • How do I Completely remove a device from 'Text Message Forwarding' on my iPhone?

    I want to completely remove a device from 'Text Message Forwarding' on my iPhone... I don't just mean turn it/toggle off.

    To delete the book from the library, control click > delete.
    You cannot delete purchases from the Cloud, however, you can hide them:
    http://support.apple.com/kb/HT4919?viewlocale=en_US&locale=en_US

  • [Forum FAQ] How to remove div characters from multiline textbox field in SharePoint 2013

    Scenario:
    Need to avoid the div tags and get data alone from multiline textbox field using JavaScript Client Object Model in SharePoint 2013.
    Solution:
    We can use a regular expression to achieve it.
    The steps in detail as follows:
    1. Insert a Script Editor Web Part into the page.
    2. This is the complete code, add it into the Script Editor Web Part and save.
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
    function retrieveListItems() {
    // Create an instance of the current context to return context information
    var clientContext = new SP.ClientContext.get_current();
    //Returns the list with the specified title from the collection
    var oList = clientContext.get_web().get_lists().getByTitle('CustomListName');
    //use CAML to query the top 10 items
    var camlQuery = new SP.CamlQuery();
    //Sets value that specifies the XML schema that defines the list view
    camlQuery.set_viewXml('<View><RowLimit>10</RowLimit></View>');
    //Returns a collection of items from the list based on the specified query
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(this.collListItem, 'Include(Title,MultipleText)');
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded() {
    //Returns an enumerator to iterate through the collection
    var listItemEnumerator = this.collListItem.getEnumerator();
    //Remove div tag use a regular expression
    var reg1 = new RegExp("<div class=\"ExternalClass[0-9A-F]+\">[^<]*", "");
    var reg2 = new RegExp("</div>$", "");
    //Advances the enumerator to the next element of the collection
    while (listItemEnumerator.moveNext()) {
    //Gets the current element in the collection
    var oListItem = listItemEnumerator.get_current();
    alert(oListItem.get_item('MultipleText').replace(reg1, "").replace(reg2, ""));
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>
    Result:<o:p></o:p>
    References:
    http://www.w3schools.com/jsref/jsref_obj_regexp.asp
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Nice article :)
    If this helped you resolve your issue, please mark it Answered

  • How do I TRULY remove the CRLF (#) from the last field read in CSV dataset?

    Good day, everyone!
    PLEASE NOTE:  I spent most of yesterday searching SDN and reading all kinds of threads on this topic.  Yes, I know, there ARE other threads out there regarding this topic, but I spent all of yesterday afternoon trying every solution posted and nothing worked.  So, to my knowledge, nobody has yet to post a definite solution to this problem.
    I am reading a comma-delimited CSV file from our Application Server.  It was originally in Microsoft Excel but saved as a CSV file.  I open the file as follows:
    OPEN DATASET p_fname FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    Here is my loop to read the entire file into an internal table, splitting it into individual fields:
      READ DATASET p_fname INTO wa_unsplit.
      WHILE sy-subrc EQ 0.
        ADD 1 TO w_unsplit_tot.
        SPLIT wa_unsplit AT w_comma INTO:
              wa_split-massn
              wa_split-massg
              wa_split-curr
              wa_split-persg
              wa_split-pernr
              wa_split-persid
              wa_split-persk
              wa_split-stat2
              wa_split-fisc_year
              wa_split-funds_center
              wa_split-plans
              wa_split-orgeh
              wa_split-abkrs
              wa_split-werks
              wa_split-sem_posit
              wa_split-ansal
              wa_split-bsgrd
              wa_split-adm_adj_amt
              wa_split-hourly_rate.
        APPEND wa_split TO it_split.
        CLEAR: wa_unsplit,
               wa_split.
        READ DATASET p_fname INTO wa_unsplit.
      ENDWHILE.
    The problem is that the last field, wa_split-hourly_rate (defined as character length 17) gets a '#' appended to the end of it.  This happens with each record, and it appears to be the CR/LF character (the value of it in hex is the same as cl_abap_char_utilities=>cr_lf).
    I've tried everything previously recommended to strip this character from my hourly_rate field.  I've tried another STRIP command.  I've tried REPLACE and TRANSLATE and a whole slew of things.  Despite all the threads that exist on SDN about this, I've yet to find something that truly works.
    Certainly I can't be the first person reading a file from the Application Server and having this issue.
    Please do NOT post links to solutions that DO NOT WORK!  Full points will be awarded to anyone who can solve this challenge.
    Thanks everyone!

    Success!  Peluka and Naimesh, I had to combine your two recommendations, and I finally got it to work!
    Thanks for the clarification, Rich.  I ended up calling my "aux" field "junk" for lack of a better word, but in the end you confirmed what I thought it was.
    For anyone else out there who has struggled finding a successful answer to this challenge, here's what worked for me:
    CONSTANTS: c_comma(1)  TYPE c VALUE ',',
               c_crlf(1)   TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    DATA: w_junk          TYPE string.
      READ DATASET p_fname INTO wa_unsplit.
      WHILE sy-subrc EQ 0.
        ADD 1 TO w_unsplit_tot.
        SPLIT wa_unsplit AT c_comma INTO:
              wa_split-massn
              wa_split-massg
              wa_split-curr
              wa_split-persg
              wa_split-pernr
              wa_split-persid
              wa_split-persk
              wa_split-stat2
              wa_split-fisc_year
              wa_split-funds_center
              wa_split-plans
              wa_split-orgeh
              wa_split-abkrs
              wa_split-werks
              wa_split-sem_posit
              wa_split-ansal
              wa_split-bsgrd
              wa_split-adm_adj_amt
              wa_split-hourly_rate.
    And here is the line that removes the CR/LF character from the end of the Hourly Rate field!
        SPLIT wa_split-hourly_rate AT c_crlf INTO:
        wa_split-hourly_rate w_junk.
        APPEND wa_split TO it_split.
        CLEAR: wa_unsplit,
               wa_split.
        READ DATASET p_fname INTO wa_unsplit.
      ENDWHILE.
    Thanks so much, everyone!  Once again, SDN folks save the day.  Points awarded!

  • Remove Submit button from completed pdf

    I am creating a fillable pdf with a submit button that will email the pdf from our intranet to a list of recipients.  I would like to remove the submit button, another button that I use to lock all fields button and accompaning text box from the completed form.  Is there a script or other solution that would allow this?  Thanks.

    Interesting... was just trying it again.  I moved that script to the presubmit on the form you sent me and it does complete all the tasks; but when saved and opened in reader the Mailto does not appear and changes cannot be saved.  Then when right are enabled through Acrobat, then re-opened with reader the fields on the form are not locked when it is received by email.
    When the same changes are made to the original form in LiveCycle and saved as a Static 7 or 8 pdf the text does not get removed and when saved as a Dynamic 7 or 8 the text gets removed but all the fields are unlocked when received by email.
    On the form I've setup a Current Date field and have it working with Date and Time format using the following:
    ----- form1.Page1.CurrentDate::calculate: - (FormCalc, client) -------------------------------------var 
    theDate = Num2Date(Date(), "MMM D YYYY")
    var theTime = Num2Time(Time(), "hh:MM:SS A") Concat(Num2Date(Date()
    , "MMM D YYYY"), " ", Num2Time(Time(), "hh:MM:SS A"))
    What I'm looking the do is insert a time stamp somewhere on the form when a button is clicked, rather than when the form is opened.
    Charley

  • Remove Carriage Return from a TextEdit field

    Hi All,
    I have a tableview, of which the last field Description, is of type TextEdit. Not only this, when the data was migrated from a legacy system to SAP, either the last field with the value (If Description has value, Description field, else the field before Description) has 2 '##' at the end of it.
    The 2nd # is EQ to
    cl_abap_char_utilities=>newline
    , which I can remove using
    REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>newline IN <fs> WITH ''.
    But the first # is having the Hex Value 0D00, which is EQ to Carriage Return. CR_LF is Carraige Return and Line Feed, but here, I need to remove only CR.
    Can anyone give me the right solution?
    I tried moving this data to a string field and then do a REPLACE All... IN BYTE MODE, but again, it didn't work.
    Thanks and Regards
    Gladson Jacob

    Hi Patrick,
    The program's ending with a Short Dump. The code snippet is as below.
    DATA: it_contract TYPE TABLE OF zbpa_bp_contract,
          xstring_val TYPE x VALUE '0D00',
          value2 TYPE x VALUE '2000',
          string_value TYPE string,
          xstring_value TYPE xstring,
          stringtable TYPE TABLE OF string,
          reply_value TYPE TABLE OF tline.
    FIELD-SYMBOLS <fs> TYPE zbpa_bp_contract.
    SELECT * FROM zbpa_bp_contract
      INTO TABLE it_contract.
    *  WHERE id BETWEEN 2316 AND 2328.
    LOOP AT it_contract ASSIGNING <fs>.
      string_value = <fs>.
      APPEND string_value TO stringtable.
      CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT'
        TABLES
          text_stream = stringtable
          itf_text    = reply_value.
    ENDLOOP.
    The dump description is as follows
    Error analysis
        At the statment "DESCRIBE" only character-type data objects are supported at the argument position "TEXT_STREAM", but no strings are supported (data types STRING and XSTRING).
        In this particular case, the operand "TEXT_STREAM" has the type "g".
    <b>Please help.</b>
    Thanks in advance.
    Gladson
    Message was edited by:
            Gladson Jacob
    Message was edited by:
            Gladson Jacob

  • Removing residual data from texts

    In Settings, general, usage ....next to messages it shows 610 MB. I have deleted all text messages. I have updated to the latest software. I was unable to update to ios 7.0 because of the 2 MB required. I deleted pictures apps and music in order to have the 2 MB required for update. I reinstalled everything,  only for Apple to come out with two more updates. I now have the latest software version.
    I reset the phone and have  updated to the latest  ios version
    I have restarted the phone several times
    Yet still next to  messages it shows 610 MB. !
    That's more then half gig of memory. How do I recover this memory I would like to use it for apps and more pictures.

    Greetings,
    Follow the steps listed in the iPhoto Help menu under: http://docs.info.apple.com/article.html?path=iPhoto/8.0/en/26672.html.
    If everything else in the Library and iPhoto are working correctly this should remove the place entry for an individual photo or a range of photos.
    Hope that helps!

  • Anyone have a tip or app for removing unwanted formatting from text on the iPad?

    I have text that was created in Word, sent via email, received on my iPad. I need to get all of the hidden formatting stripped out of this text before pasting into another application. The Notes app works in plain text, but it does not strip all the formatting out of text that has been pasted into it.  Anyone have a solution? I have looked at online services and searched for apps but can't seem to find anything that does this.

    I also am looking for a better email client. I need the ability to use folders and have email go directly to these folders when checking email. Just sending all email to only one inbox folder is just to confusing. I like the ability to search for email but this feature only helps to a degree. An example would be... I like all my email from tennis friends on my team to go to a separate email folder. I can do this in Microsoft Outlook and this feature makes it a lot easier to view things. Right now the email client is like a physical filling cabnet that has only one folder. The email client does try to group related emails together that I don't think works very well. So far not all email from one person are being grouped together. Some are but not all so I don't know what criteria it is using to determine what is grouped together. To work better I would like every piece of email from the same person to be grouped together. But then again wouldn't it be easer to just have a separate folder for each person or group of people. The reason for this is at a glance there are so many emails in my inbox that I sometimes miss an email. Using folders would allow me to check and scan my inbox a lot easier when there are only maybe a dozen email to view.
    Anyone else would like to see this feature?
    John

  • Reimport form or remove submit feature from pdf

    I have a form that has nearly 1000 fields that I saved over the original pdf so when I went to edit it I only have the form version that was created with Forms Central. Are you telling me that I can't reimport this form into Forms Central? I have to recreate this form with over 1,000 fields that took about 8 hours to complete??!!

    Did you design the form in FormsCentral or did you import the original PDF into FormsCentral.
    Unfortunately right now you can't import a FormsCentral PDF in FormsCentral (but this will change very soon).
    With the new feature coming soon you will be able to import FormsCentral PDF. If the form was designed in FormsCentral you won't be able to modify it in FormsCentral after the import as it will behave like any other PDF import (where you can only decide where to put the submit button).
    In the mean time you can try these steps (if you have Acrobat) to fix your issue
    http://forums.adobe.com/message/5490476#5490476
    Gen

  • To Remove comma's from the Currency Field

    Hi,
    I Want to print the Currency Field in the smartform without
    comma's.
    Is there any Function Module to suppress comma's .
    Eg: 1,000.00 to 1000.00
    Regards
    Praveen.
    Edited by: praveen kumar on Jan 20, 2009 2:13 PM

    Hi,
    Following code will help you in this way,
    TABLES: aufk.
    TYPES: BEGIN OF t_aufk,
      user4 LIKE aufk-user4,
      withoutc(13),
      END OF t_aufk.
    DATA: it_aufk TYPE STANDARD TABLE OF t_aufk WITH HEADER LINE,
          wa_it_aufk TYPE t_aufk.
    SELECT user4 FROM aufk UP TO 10 ROWS
      INTO CORRESPONDING FIELDS OF TABLE it_aufk.
    BREAK-POINT.
    LOOP AT it_aufk INTO wa_it_aufk.
      wa_it_aufk-withoutc = wa_it_aufk-user4.
      MODIFY it_aufk FROM wa_it_aufk INDEX sy-tabix.
    ENDLOOP.
    LOOP AT it_aufk into wa_it_aufk.
      WRITE: / wa_it_aufk-user4,  wa_it_aufk-withoutc.
    ENDLOOP.
    Please test with your own table and field may be you will not able to get any amount in the above used itab, if you only want to test place a break point just before 1st loop and add some values in the debuger mode to the amount field.
    Please Reply if any Issue,
    Kind Regards,
    Faisal
    Edited by: Faisal Altaf on Jan 20, 2009 6:46 PM

  • Removing gray background from text

    I have copied a text interspersed with black outlined on a homogeneous gray background. All is in black and 'white'.
    Is there a way to remove the gray background? I would like to print the text and the outlines on white.

    Just a bit of amplification.
    When you open your file, you will see that the background layer is a locked layer. Drag the padlock icon to the trash bin to unlock it - it will then be Layer 0. Now use the magic wand tool.

  • Remove authentication requirment from applications folder

    Hi whenever i try to copy an application to my applications folder it asks me for authentication, i don't this i want to be able to move applications into the applications folder without having to authenticate i am the admin of my computer, it was not like this in the past i don't remember if i have done something to make it like this. how do i remove this authentication requirement?
    thanks.

    abdu wrote:
    By the way do you know what could have caused that thanks
    no, I don't. in fact, I'm still confused by this. the permissions on the Applications folder are recorded in the permissions database and running repair permissions should have fixed this. the fact that it didn't means that you might have a problem with your permissions database. could you run "repair permissions" again? see what if anything happens to permissions on Applications.

  • How to removed leading zeros from a date field.

    CONVERT(NVARCHAR, CONVERT(DATETIME, CONVERT(CHAR(8), STM.CreationDate)), 101)
    This is what i currently have, but prints 02/03/2014 i would like to print the date without the zeros when applicable.
    Thanks in advance.

    >>REPLACE(LTRIM(REPLACE(CONVERT(NVARCHAR, CONVERT(DATETIME, CONVERT(CHAR(8), STM.CreationDate)), 101),'0', ' ')), ' ', '0')
    Does this query really works? I doubt
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • How do I remove the requirement for a signature from a PDF?

    I can't have my associates and customers signing a document that does not require their signature. How do I remove this requirement from the PDF?
    (Yes, I have seen the other threads on this subject but the registry entries described are not in my registry and merely disabling the user interface doesn't remove the REQUIREMENT for the signature in the first place.)
    Thank you,
    David Smith

    You can set standard password security by selecting: FIle > Properties > Security > Security Method > Password Security
    and in the dialog that's presented, set the security restrictions so that no changes are allowed, or to whatever else you want.

  • Putting a production order on hold, removing capacity requirement

    Hi,
    I have a need to temporarily remove capacity requirements from production order because there is situation on the shop floor that caused the particular order unable to move ahead.
    Capacity requirement shall be re-instated when the order specific production issue is cleared.
    Is there a way to update a production order to release capacity requirement yet allowing changes to production order routing? I tried "LOCK" production orders but that will not allow me to change anything in the order.
    Can I set up a user status + user exit to remove the capacity requirement? If so, how to?
    Thanks all in advance!!!
    Regards.

    Hi
    Capacity requirement can be deleted when the following functions are carried out.
    1.The production order is set to Technically Complete.
    2. The deletion flag is set for the production order
    3.The production order is locked
    4.The indicator capacity  requirement in the procdution order is reset  and order is rescheduled
    5.The capacity requirement is reset with fucntions -----Availability check---reset cap stock
    Regards,
    Sadan

Maybe you are looking for

  • Payment advice form for each payment method

    Hi, We have Check, RTGS and Bank Transfer payment methods in single company code, I have assigned different payment programs in OBVCU for payment methods C,R & T and seperate payment advice form to each payment methods in OBVU, and also I have mainta

  • Can't print my pdf file or document

    I am trying to print my E-Documents for my trip but my printer keeps printing blank paper.

  • Loading a song to IMovie project twice

    I have started a IMovie project and placed a particular song from ITunes at or near the commencment of the first clip. I now want to place the same song at a different starting place further on into the project. The field " Place at Playhead" is not

  • Purchase request not created

    Hi , When i am doing MRP run, purchase request are not created.

  • How to print borderless

    If I use my Canon easyprint utility to select a photo and ask it to print borderless on 4" x 6" photo paper, it does so effortlessly. However If I select a photo in lightroom it always puts borders around the photo. Isnt there some simple setting to