Force user to enter text if checks YES check box

I have created a form with YES and NO check boxes.  If user checks YES, they need to provide written reason.  Is there a way to "force" user to enter text into text box if they check the YES check box?
Thanks,
Toyro

Hi Jodi,
Yes, it has to be saved as a dynamic PDF.
Additionally, there are some name mismatches in your form so the script was failing. My script defined page 1 as 'page1' while your form defined page 1 as 'Page1'. I renamed your form page 1 to 'page1' and the script worked fine.
I would recommend enabling the debugger in Acrobat for form developement. See Edit > Preferences and enable the following:
I added an additional button with some script on the button 'click' event.
The purpose is to intervene in the submission process, in your case submitting by email. With a single submit button the email dialogue fires regardless of failed form validation. By introducing a second button you can do form validation before enabling submission. The attached form has a visible button called 'submitBtn' and your original 'Submit By Email' button which is declared as 'invisible'. My 'submitBtn' is labelled 'Submit By Email'. When the button is clicked is does form validation. If validation succeeds, I call form1.page1.Button1.execEvent("click"); to submit to the email address attached to 'Button1'.
Take a look and see if it fits your requirements.
Steve

Similar Messages

  • Forcing user to enter values at table level

    Hi,
    I have created a table ztest. How to force user to enter the values for certain fields in the table which are not keys, similar to not null in RDBMS. selecting the initial values filed in SE11 populates with some default value, but it doesnt force the user to enter the value.
    Regards,
    Raghu

    Hi,
    Just check out transaction code SE54 for events.
    Go in SE54.
    Give your table name.
    Go in Environment --> Events.
    Here add the Event '01' i.e. Before saving the data.
    Give the name for event eg 'BEFORE_SAVE'.
    Click on Editor to create an include program.
    In the include program write
    form before_save.
      data: f_index like sy-tabix. "Index to note the lines
      loop at total.
        if <action> = 'N' or <action> = 'U'.
          read table extract with key <vim_xtotal_key>.
          if sy-subrc eq 0.
            f_index = sy-tabix.
          else.
            clear f_index.
          endif.
          "(make desired changes to the line TOTAL)
          "End of Modification.
          modify total.
          check f_index gt 0.
          extract = total.
          modify extract index f_index.
        endif.
      endloop.
      sy-subrc = 0.
    endform.
    Note here in field symbol 'Total' your workarea will be their. You can make necessary checks here.
    Or else you can go for making a custom transaction for your requirement.
    Regards,
    Nitin
    *Mark all helpful answers

  • How to force user to enter supplier/customer name in captial letters in R12

    Dear all,
    Could anyone pls advise how to force user to enter supplier/customer name in captial letters in R12? Can I do it using OA framework personalization?
    HY

    Pl post exact versions of OS and EBS.
    The ability to do this exists in forms (professional user interface) using forms personalization, but does not exist in the OAF (self-service) interface, AFAIK. See related MOS Doc 399892.1 (Is It Possible To Restrict Employee Name Entry To All Upper Case in the PUI And SSHR ?) for some details.
    Pl confirm by opening an SR with Support.
    HTH
    Srini

  • Dropdown list (predefined list) along with provision for user to enter text

    Hi,
    Is there any provision in J2ME to have
    " a drop-down list , which contains predefined variables. if the user does not want to use those predefined variables, then a provision for user to enter text."
    thanks in advance

    Append Method
    I would create a box / div in Animate then when you publish it and put it on your page just append a form with an email input ( <input type="email></input>" ) and submit button.
    <form action="url">
      <input type="email" name="usremail">
      <input type="submit">
    </form>
    This page provides a lot of information on how to use Edge Animate and how to do more advanced things.
    http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html

  • How to force users to enter their ID and password ?

    I am considering installing AirPort Extreme at our office. We don't want guests connecting to our network. is there any option/software that will force the guest to enter an ID and password to connect to our network ? This is similar to what happens at the hotels when we try to connect to hotel's network.

    How to force users to enter their ID and password?
    is there any option/software that will force the guest to enter an ID and password to connect to our network ? This is similar to what happens at the hotels when we try to connect to hotel's network.
    The AirPort Extreme does not have the features necessary to create a "splash page" that provides basic information about the company and asks users for their identity and password....like you see at most hotels.
    Basically, with an AirPort Extreme, users would have to scan to look for the name of the wireless network to join, and then enter the password to connect.
    The best that you might be able to achieve with the AirPort Extreme is create a "hidden" network, which would require that users know both the name of the wireless network and password to connect.  However, based on experience, this might be more of a hassle than anything else.
    The bottom line.....Apple really designed the AirPort routers for home use, so that might be the best place for them in most cases.

  • I'm having the oddest situation...  On my 13" MBP, when trying to enter text into a Facebook comment box; my delete key is totally non-functional.  I works just fine everywhere else, just not in the comment box.  Cannot delete characters.

    I'm having the oddest situation.  When I attempt to enter text into a Facebook comment box, my "delete" key doesn't work.
    It's just fine EVERYWHERE else, I just cannot delete characters from a comment box.
    What might I be missing?  I don't know what's up.
    JP
    MacBook Pro Retina 13"
    Safari 8.0.2
    Yosemite 10.10.1

    I'm having the oddest situation.  When I attempt to enter text into a Facebook comment box, my "delete" key doesn't work.
    It's just fine EVERYWHERE else, I just cannot delete characters from a comment box.
    What might I be missing?  I don't know what's up.
    JP
    MacBook Pro Retina 13"
    Safari 8.0.2
    Yosemite 10.10.1

  • Filed in the ALV report in which user can enter text manually

    Hi,
    Is it possible to enter a field in the report where user can enter data manually and save it in a ALV report?
    If yes then let

    Hi, SATYA
    Test the following Sample Report it hope it will solve out your Problems related to ALV.
    REPORT  zfsl_alv_test.
    TYPES: BEGIN OF t_it,
      mname(10),
      amount1 TYPE p,
      amount2 TYPE p,
    END OF t_it.
    *TABLES : it1_sum.
    TYPE-POOLS : slis.
    *VARIABLES
    DATA : check(1),
           rep_id TYPE sy-repid.
    *INTERNAL TABLE TYPE OF t_name
    DATA: it1_sum TYPE STANDARD TABLE OF t_it WITH HEADER LINE,
          wa_it1_sum TYPE t_it,
          it2_sum TYPE STANDARD TABLE OF t_it WITH HEADER LINE,
          wa_it2_sum TYPE t_it.
    *List Header
    DATA : it_listheader TYPE STANDARD TABLE OF slis_listheader WITH HEADER LINE,
           wa_listheader TYPE slis_listheader.
    *Event Raising to Display Heading.
    DATA: event TYPE slis_t_event,
          event_str TYPE slis_alv_event.        "Event String.
    *FIELD CATALOG
    DATA : it_field TYPE slis_t_fieldcat_alv,
           wa_field TYPE slis_fieldcat_alv.
    *SORTING
    DATA : it_sort TYPE slis_t_sortinfo_alv,
           wa_sort TYPE slis_sortinfo_alv.
    *Layout
    DATA : wa_layout TYPE slis_layout_alv.
    INITIALIZATION.
      check = 'X'.
      rep_id = sy-repid.
    START-OF-SELECTION.
      wa_it1_sum-mname = 'BBB'.
      wa_it1_sum-amount1 = '-500'.
      wa_it1_sum-amount2 = '-200'.
      APPEND wa_it1_sum  TO it1_sum.
      wa_it1_sum-mname = 'BBB'.
      wa_it1_sum-amount1 = 100.
      wa_it1_sum-amount2 = 200.
      APPEND wa_it1_sum  TO it1_sum.
      wa_it1_sum-mname = 'CCC'.
      wa_it1_sum-amount1 = 500.
      wa_it1_sum-amount2 = 10000.
      APPEND wa_it1_sum  TO it1_sum.
      wa_it1_sum-mname = 'CCC'.
      wa_it1_sum-amount1 = 105000.
      wa_it1_sum-amount2 = 20500.
      APPEND wa_it1_sum  TO it1_sum.
      wa_it1_sum-mname = 'AAA'.
      wa_it1_sum-amount1 = 21000.
      wa_it1_sum-amount2 = 22000.
      APPEND wa_it1_sum  TO it1_sum.
      wa_it1_sum-mname = 'BBB'.
      wa_it1_sum-amount1 = 5500.
      wa_it1_sum-amount2 = 2200.
      APPEND wa_it1_sum  TO it1_sum.
    *          Heading
      wa_listheader-typ = 'H'.
      wa_listheader-info = 'ALV TEST Top-of-Page'.
      APPEND wa_listheader TO it_listheader.
    *          FIELD CATALOG
      wa_field-col_pos = 1 .
      wa_field-tabname = 'IT1_SUM'.
      wa_field-fieldname = 'MNAME'.
      wa_field-seltext_m = 'Material Number'.
    *ls_fcat-do_sum = 'X'.
      APPEND wa_field TO it_field.
      CLEAR wa_field.
      wa_field-col_pos = 2 .
      wa_field-tabname = 'IT1_SUM'.
      wa_field-fieldname = 'AMOUNT1'.
      wa_field-seltext_m = 'Amount 1'.
      wa_field-do_sum = check.
      wa_field-edit = 'X'. " To add this you can edit any Colum
      wa_field-edit_mask = 'V___________'.  " Use this to place the (-) Minus Signe on the left side
    *ls_fcat-do_sum = 'X'.
      APPEND wa_field TO it_field.
      CLEAR wa_field.
      wa_field-col_pos = 3 .
      wa_field-tabname = 'IT1_SUM'.
      wa_field-fieldname = 'AMOUNT1'.
      wa_field-seltext_m = 'Amount 2'.
      wa_field-do_sum = check.
      wa_field-edit_mask = 'V___________'.
    *ls_fcat-do_sum = 'X'.
      APPEND wa_field TO it_field.
      CLEAR wa_field.
    *          SORT By MNAME
      wa_sort-spos = 1.
      wa_sort-fieldname = 'MNAME'.
      wa_sort-tabname = 'IT1_SUM'.
      wa_sort-up = check. " Here Use u2018downu2019 for descending Order
      wa_sort-subtot = check.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
    *          ALV Layout Setting
      wa_layout-zebra = 'X'.
      wa_layout-colwidth_optimize = 'X'.
    *          Calling function to raise event to display heading and icon above ALV
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         i_list_type           = 0
       IMPORTING
         et_events             = event[]
    * EXCEPTIONS
    *   LIST_TYPE_WRONG       = 1
    *   OTHERS                = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *          Calling TOP_OF_PAGE Event
      READ TABLE event WITH KEY name = 'TOP_OF_PAGE' INTO event_str.
      IF sy-subrc = 0.
        MOVE: 'TOP_OF_PAGE' TO event_str-form.
        APPEND event_str TO event.
      ENDIF.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
    *   I_INTERFACE_CHECK                 = ' '
    *   I_BYPASSING_BUFFER                = ' '
    *   I_BUFFER_ACTIVE                   = ' '
         i_callback_program                = sy-cprog
    *   I_CALLBACK_PF_STATUS_SET          = ' '
    *   I_CALLBACK_USER_COMMAND           = ' '
    *   I_CALLBACK_TOP_OF_PAGE            = ' '
    *   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    *   I_CALLBACK_HTML_END_OF_LIST       = ' '
    *   I_STRUCTURE_NAME                  =
    *   I_BACKGROUND_ID                   = ' '
         i_grid_title                      = 'ALV Test'
    *   I_GRID_SETTINGS                   =
         is_layout                         = wa_layout
         it_fieldcat                       = it_field
    *   IT_EXCLUDING                      =
    *   IT_SPECIAL_GROUPS                 =
         it_sort                           = it_sort
    *   IT_FILTER                         =
    *   IS_SEL_HIDE                       =
         i_default                         = 'X'
         i_save                            = 'X'
    *   IS_VARIANT                        =
         it_events                         = event[]
    *   IT_EVENT_EXIT                     =
    *   IS_PRINT                          =
    *   IS_REPREP_ID                      =
    *   I_SCREEN_START_COLUMN             = 0
    *   I_SCREEN_START_LINE               = 0
    *   I_SCREEN_END_COLUMN               = 0
    *   I_SCREEN_END_LINE                 = 0
    *   I_HTML_HEIGHT_TOP                 = 0
    *   I_HTML_HEIGHT_END                 = 0
    *   IT_ALV_GRAPHICS                   =
    *   IT_HYPERLINK                      =
    *   IT_ADD_FIELDCAT                   =
    *   IT_EXCEPT_QINFO                   =
    *   IR_SALV_FULLSCREEN_ADAPTER        =
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER           =
    *   ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = it1_sum
    * EXCEPTIONS
    *   PROGRAM_ERROR                     = 1
    *   OTHERS                            = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *&      Form  top_of_page
    *       text
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary       = it_listheader[]
          i_logo                   = 'ENJOYSAP_LOGO'
    *   I_END_OF_LIST_GRID       =
    *   I_ALV_FORM               =
    ENDFORM.           "top_of_page
    Kind Regards,
    Faisal

  • Force user to enter a social security number

    How do I force a user to enter their social security number. The form I'm working on is connected to a system that won't allow the SS# to be left blank. I need to add something that will not allow a blank SS# field on my from. Any help is greatly appreciated.

    In the Object palette, make your field required:

  • Allowing users to enter text into a web page

    Hi there,
    I'm not at all versed in Java, so I would like some advice on how to do the following in a web page.
    Imagine you have a group of four users and they have to be able to give you a response to a question and be able to see what the others have responded.
    Basically I want the users to be able to to enter text into the webpage, so that the question can be changed and also so that each person can change their reply (in a space under their name.)
    It would also be acceptable if the text was from a predetermined list, ie a drop down list which has a "memory"
    Any ideas would be most welcome, thanks in advance!
    -Ekipero-

    Hi again,
    I think I didn't explain myself clearly enough.
    Basically, all I need is a text box which can be edited by anyone who visits the webpage, and which once edited has a "memory" so the next person who visits the page can see what the person before wrote.
    I don't know any Java but I'm sure an applet to do this can't be too difficult right?
    Perhaps doing it through a text box and a Submit button which then pastes what has been written in the text box onto the page? Or perhaps the text can be chosen from a predetermined list?
    Thanks in advance to all ;-)
    -Ekipero-

  • Force user to use text entry box?

    Hello,
      Is there a way to require the user to enter something into the text entry box in order to proceed without just removing the forward buttons in the play bar?  (That has been my trick until now.) 
    Thank you!
    Ryan

    Have a look at this very old blog post (but regularly consulted by lot of users):
    http://lilybiri.posterous.com/where-is-null
    Add a Next button, that is initially hidden and will be made visible when the entry in the TEB is no longer 'null'
    Lilybiri

  • Force User to enter new password

    Hi all,
    I would like to know if there is a way to force some of our users to enter a new password when they logon to SAP the next time?
    The only way I would know is to give them a new password in SU01 and email it to them. But this would be a lot of work. We do not want to change the password settings in general, as most of our users should not be affected by this.
    Does anyone know a differerent way? Maybe to set a flag in the user or a table?
    Thanks for any help.
    Tobi

    you could change parameter
    login/password_expiration_time
    to - let's say 1 and restart all of the instances of that special system. after one day all users would have to change their passwort.
    you could then reset the parameter to 0 (or to whatever value you think adequate) on all instances of the system and restart them ...
    thus having forced all your users to change the password at least once.
    Edited by: Mylene Euridice Dorias on Mar 11, 2008 4:23 PM
    for some users you have to use SU01 ...

  • How can I force users to enter specifc format?

    I'm using Livecycle Designer ES2 provided with Acrobat X Pro. 
    I have a form where the age field is calculated from the date of birth field.  The date of birth field (DOB) is a date/time field.  The age field (Age) is a numeric field.
    Problem is: when user enters 01/01/01 shows age as 101.  When user enters 01/01/2001 age shows 1.  All patterns are set to mm/dd/yyyy.  Is there a way to prohibit the user from continuing to the next field until the proper format is entered?  I'm open to any ideas which will acheive the desrired outcome.  I'm new to livecycle and javascript.  I suspect an easy solution but I can't seem to find it when searching the forums or LD help menu.
    I've attached the script for the Age field in case it helps.
    Age::calculate - (JavaScript, client)
    var ageInYears = 0;
        var birthDate = new Date();
        if ( DOB.rawValue != null )
            // Get current date, and convert user-entered date to a Date object.
            var curDate = new Date();
            birthDate.setTime(Date.parse(DOB.editValue));
            // Set initial age, current year - birth year
            ageInYears = curDate.getFullYear() - birthDate.getFullYear();
            // If we haven't reached the birth month yet, not yet 1 year older...
            if ( curDate.getMonth() < birthDate.getMonth() )
                ageInYears--;
            // If this month is same as birth month but we haven't reached the
            // birth date yet, not yet 1 year older...
            if ( curDate.getMonth() == birthDate.getMonth() )
                if ( curDate.getDate() < birthDate.getDate() )
                    ageInYears--;
            // Set age in result field.
            this.rawValue = ageInYears;

    Radzmar,
    Thanks for the great advice at: http://thelivecycle.blogspot.de/2011/10/date-patterns.html
    However I can't get this method to work. I would like the date to display as MM-DD-YYYY regardless of what the user enters. 2 problems show up. First I get this annoying dialog box
    and then second the date box doesn't even display the date in the MM-DD-YYYY format I would like. For instance if I enter 10/15/1994 the dialogue box above appears but doesn't display 10-15-1994, it just displays it as 10/15/1994. There seems to be a difference between pressing enter or return on keyboard after typing the date, versus just clicking out of the date box. I can't get a sample date in the "Sample" line like you had. Any ideas?

  • I cannot enter text in the iTunes search box

    I'm having a really bizarre problem with iTunes latest version (10.5,0.142). When I click in the search field in the upper right-hand corner of the program, I cannot enter any text--no text cursor appears.  I can click on the little down arrow next to the magnifying glass and select "All," or "Artist," or "Album," etc, but I'm not able to enter text. It's like the focus doesn'tshift from the Library pane and any letters I type just cause the highlight for that window to drop down to the closest match to the character I typed, even though the focus has shifted to the search pane.
    I've tried uninstalling and reinstalling iTunes, but that does not correct this misbehavior.
    Not sure if it's related, but I also no longer have the text menus available at the top of the window, whether the program is maximized or minimized and taking up only part of the screen (this is not a screen clipping problem--those text menus are no longer there, though you can get very small hotspots to appear near the upper left hand edge of the program window (when you have the program window in normal mode, rather than maximized), where those text menus would be, and if you click on the hotspots, the menus do appear.
    But, by far, the first issue is the most perplexing.

    Solved: This was caused by replacing the SegoeUI (Regular) true-type font. I have no idea what process or why that font was deleted, but finding the segoeui.ttf file on another Windows machine, emailing it to myself, saving it to disk, then right-clicking and choosing "Install" fixed this problem.

  • Can't enter text in certain forum dialog boxes (java?)

    On certain forums and sites, I am unable to click on a dialog box and enter text. When I click in the box, it either highlights the line or the whole box but does not allow me to enter any text - the keyboard does not appear. I do not have an option to paste text either. The text/dialog boxes look similar to the one I am writing in right now. For my online classes, I use Moodle, and that's one of the sites that causes this issue. It was an issue also on my iPhone but I was hopeful that it would work differently on the iPad.
    There are two methods I've found to enter text. One is through HTML and the second is unreliable -sometimes if I click in the box while I refresh, I can get the keyboard to pop up.
    Any thoughts or suggestions? Java is enabled and I've tried clearing everything.

    According to what I read on another forum entry - to do with WYSIWYG editors - this is a problem with Safari. Apparently, it doesn't handle Javascript correctly in all cases. I administer Joomla sites and Safari on a standard machine, let alone an iPad, gives me a lot of grief. So, on any other machine I use Chrome or FireFox. Sadly, this isn't an option on an iPad. We're stuck with Safari - whether we like it or not!

  • CS5: Type tool entering text in a tiny transform box

    Everything else seems to be working correctly (at least those parts I use).
    At some point, several months ago, my sister and I were playing with transform (by phone, we are in different states) -- she had taken a Photoshop class and wanted to try to duplicate something.
    I tried using my type tool yesterday, and couldn't see anything when I typed. (White background, black text, Arial, 14 pt, 100%)
    I've tried clearing type presets.
    I finally tried blowing it up to 500% and saw a small, gray font-like image where I was typing.
    I held down Ctrl and played with the transform box: if I expanded the box, my text is there.
    I've tried clicking on everything at the top when in transform, but have no idea what I'm doing.
    I have no idea how to get my type tool entering text in the regular way.
    Please help.
    Thanks!

    The resolution of the file I was working on was 2 (I obviously didn't add or deleted the '7' that was supposed to be in front of it)!
    Thank you ever so much, CB! I spent a couple hours on this and really appreciate your help and insight.

Maybe you are looking for

  • How do I get lesson 1 to open lesson 2 which is in a parallel folder?

    My project has 9 lessons.  Each lesson must be published as a separate folder because of the client's LMS enviornment.  Navigation must be forced.  To begin lesson 2, the user must complete lesson 1.  I am using a Continue button which opens a file i

  • 4.0 EA2 - Autofit not working properly in Query Result grid

    Hi, in 4.0 EA2 the Autofit isn't working properly in Query Result grid. Rather than shrinking columns to the narrowest size that accommodates headings and contents (as per 3.2), it auto-expands to fit the whole data query grid. It looks worse, and ma

  • Special Characters in Create Table......

    How can I use & sign in the column name in Create Table Statement: Create Table (aa&bb varchar2(10));

  • Why is iMessage not in sync with iPhone 4?

    I was using the iMessage beta on OSX 10.7 for my iMAC (21.5-inch: 2.5GHz) with no issues and then upgraded to Mountain Lion. My iMessages on my MAC is no longer in sync with the Messages in my iPhone 4 (iOS 5.1.1), (all messages are sent from my iPho

  • Error Stack and Error DTP-Doubts.

    Hi Experts, I have a doubt on Error Stacks and Error DTP's in BI 7.0. For example i am doing a load that has 100 records and 10 of these records have some invalid characters and hence are showing up in the Error Stack.Now I know that i can change the