Help with Required fields-PLEASE

I have been attempting to get help with a required field and one of the forum helpers said he got it to work for me but I cannot and I have not been able to get any more responses from him to help me further.
I am attempting to have a radio box when the YES is selected to require another field to be completed.  The script I was provided with is:
getField("Location").required = (getField("Group1").value == "Yes");
Location being the field that I require to be filled in if Group 1 is Yes.  The previous forum helper indicated that I had to have this script in both fields in Group 1 and when I do that, nothing different happens. 
What am I doing wrong? 
Please, I need to fix this right away and I will be using this java script on many other forms that I have so I need to get this done soon.
Thank you in advance.

Wht you want can get somewhat complicated. One way to prevent subsequent fields from being used is to set them to read-only and/or hidden. You could then use the Validate event of the text field to validate the entry and enable the subsequent fields if it is filled-in adequately. In general, you should also reset the fields whenever you hide them, so they don't contain potentially invalid data from previously being filled-in. So you could initially have the fields set to be hidden, and only unhide them if No is selected, or if Yes is selected and the required text field is filled-in.
I realize this may not be as helpful as you had hoped for, but I can't suggest specific code without knowing more about the form.

Similar Messages

  • Need help with required fields for my online form

    Hi, I've been mucking around with my online form for a while
    and I just can't see what the problem is in the code.
    I am trying to make all but two of the form items to be
    required upon form validation. However, it doesn't work, nothing is
    required now.
    I'm using these two ways of doing it (natemail.php is my form
    handler).
    <form action="../NateMail.php" method="post"
    enctype="application/x-www-form-urlencoded" id="Man Meets Woman
    Long Form Opt-in"
    onsubmit="MM_validateFormMM_validateForm("date","first_name","last_name","alias","address ","city","prov_state","postal","country","phone","email","birthdate","Sex","marital_status ","other_forums","methods_known","want_learn","coaching","invite_friends","about_myself"," terms_conditions");return
    document.MM_returnValue">
    ...is one way and the other is:
    <input name="require" type="hidden" id="require"
    value="date,first_name,last_name,alias,address,city,prov_state,postal,country,phone,email ,birthdate,Sex,marital_status,other_forums,methods_known,want_learn,coaching,invite_friend s,about_myself,terms_conditions"
    />
    The page is
    http://www.vancouversocialboard.com/register.html
    Can anyone tell me my error and tell me the proper way to do
    this?
    Thank you!

    > (never did figure out what the 'MM_validateForm code was
    supposed to be)
    It's a call to a Dreamweaver javascript function that
    validates your form.
    The function definition should be in the head of the page.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "audio90" <[email protected]> wrote in
    message
    news:ghsljj$4ll$[email protected]..
    >
    quote:
    Originally posted by:
    Newsgroup User
    > On first glance, the problem seems to be that both the
    onsubmit event
    > and the JavaScript function inside are encapsulated with
    double quotes.
    > Try wrapping the onsubmit attribute/event in single
    quotes instead, like:
    >
    >
    >
    onsubmit='MM_validateFormMM_validateForm("date","first_name","last_name","alias"
    >
    ,"address","city","prov_state","postal","country","phone","email","birthdate","S
    >
    ex","marital_status","other_forums","methods_known","want_learn","coaching","inv
    > ite_friends","about_myself","terms_conditions");return
    > document.MM_returnValue'
    >
    >
    > [snip]
    >
    >
    >
    > No, it didn't work. But I solved it to be acceptable. I
    removed the
    > 'MM_validateForm and used the Natemail action. My
    mistake there was that I
    > put
    > "require" rather than "required". It comes up with a
    different screen when
    > form
    > items are missing, rather than a pop up video, but good
    enough.
    >
    > thanks
    >
    > (never did figure out what the 'MM_validateForm code was
    supposed to be)
    >
    >
    >

  • How do I use 'submit' as complete pdf, and use 'drawn my signature' with required fields?

    I have created a form with required fields, no problem. The form can be completed with adobe reader, and a signature added using Sign > Place signature > Draw my signature, great. But i need the required fields to be checked and then sent by email, so I have add a button and set the action to "Submit a form" and selected "PDF The Complete Document" from the options. I then add the javascript URL - mailto:????@????.com, but now the "Draw my signature" option is greyed out.
    I have asked this question a number of times, and cannot get a proper answer, please can someone help or offer a work around.

    George,
    Thanks for your response, but I am not sure it fully answers my question. I have attached a screenshot to show what I mean - here I have created a simple form, with one required field for some data, using Acrobat XI. If I open the form (I have not reader enabled the form) in Adobe Reader XI, I am able to add a drawn signature, I could save the document then attach to an email to send as you have suggested.
    But, If I now add a Submit button, set the URL to mail it to [email protected] and select "PDF the complete document" as below
    When I open the document in Adobe Reader now, the signature options are all greyed out as you can see.
    Hope this clarifies my predicament

  • Help with access control please

    So I'm trying to set up my brother's PSP to the wirless network through MAC address timed access. What I want to do is make it so that he can only access it through certain times in the day. I'm having troubles with actually getting it to work. Everytime I set it up, the PSP only show's up as a DHCP client and not a Wireless client. I tried the option panel with the add wireless clients through the first try access. Could I get some help with this issue please? Thanks!

    Just to calm your fears... There is no conspiracy. If someone had an answer or a suggestion they would post it.

  • Subform with table with expanding fields - please help!

    I am a new user of LiveCycle Designer ES and need help with a form.  I've made so many changes within the form that I have now lost track and don't know where to start to fix the following two issues:
    The form itself is one Master Page that needs to repeat, based on the amount of data entered.  This is not happening.
    Within the form is a Table with expanding fields.  It is when the last field is full that I need a new page created.Also, as the table expands, it overwrites the Footer, which is a subform.  The footer is set to have a top margin (.25).
    Any assistance would be much appreciated.  Thank you!

    Looks like a cross post.  see other thread here...
    http://forums.adobe.com/thread/489453?tstart=0

  • Help with a routine please

    Hi experts!
    I have a requirement and I need help with an abap routine.
    I'm uploading a table from de ECC where each record contains one key figure per fiscal period (wlt01, wlt02,...wlt16). I need to have in a dso a unique key figure (called zwlt for instance) and the 0fiscper infoobject filled with the corresponding period, that is, for each record of the table, I need 16 records in the DSO with zwlt = wltXX and the fiscper = fiscyear&0&XX.
    Any help please?
    Thanks in advance.

    there are multiple ways to handle this.
    one way is to use APD to unpivot the data.
    or else you can use the following sample code to derive what you want...this code might just hint at the way to proceed.
    TYPES:
      BEGIN OF tys_SC_1,
          wlt01           TYPE P LENGTH 8 DECIMALS 2,
          wlt02           TYPE P LENGTH 8 DECIMALS 2,
          wlt03           TYPE P LENGTH 8 DECIMALS 2,
          wlt04           TYPE P LENGTH 8 DECIMALS 2,
          wlt05           TYPE P LENGTH 8 DECIMALS 2,
          wlt06           TYPE P LENGTH 8 DECIMALS 2,
          wlt07           TYPE P LENGTH 8 DECIMALS 2,
          wlt08           TYPE P LENGTH 8 DECIMALS 2,
          wlt09           TYPE P LENGTH 8 DECIMALS 2,
          wlt10           TYPE P LENGTH 8 DECIMALS 2,
          wlt11           TYPE P LENGTH 8 DECIMALS 2,
          wlt12           TYPE P LENGTH 8 DECIMALS 2,
      END OF tys_SC_1.
    DATA: ls_type TYPE tys_SC_1,
          l_name TYPE string,
          l_count Type n length 2.
    FIELD-SYMBOLS:
                <fs_type> TYPE tys_SC_1,
                <result>  TYPE P .
    ls_type-wlt01 = '1.1'.
    ls_type-wlt02 = '2.2'.
    ls_type-wlt03 = '3.3'.
    ls_type-wlt04 = '4.4'.
    ls_type-wlt05 = '5.5'.
    ls_type-wlt06 = '6.6'.
    ls_type-wlt07 = '7.7'.
    ls_type-wlt08 = '8.8'.
    ls_type-wlt09 = '9.9'.
    ls_type-wlt10 = '10.1'.
    ls_type-wlt11 = '11.11'.
    ls_type-wlt12 = '12.12'.
    CLEAR:  l_count ,  l_name.
    l_count = '01'.
    ASSIGN ls_type TO <fs_type> .
    Write: / .
    DO 12 TIMES.
      clear: l_name.
      Concatenate 'wlt'  l_count into l_name.
      ASSIGN COMPONENT l_name  OF STRUCTURE  <fs_type> TO <result> .
      Write: / , l_name , ' = ' , <result>.
      l_count = l_count + 1 .
    ENDDO.
    hope it helps.
    Regards
    Ashwin

  • Problems with required field

    Hello everybody!
    I'm just makgin my first steps with Visual Composer.
    I created an iView that uses the BAPI "BAPI_DEBTOR_GETDETAIL". I designed an input form that takes the customer number as a required field. The output form then displays some customer details.
    When I execute the iView I get an error message because of the missing entry in the field "custid". How can I configure the application that it waits for an input before it starts searching?

    OK prachi,
    I entered
    NOT ISNULL(@DEBTORID)
    as a trigger for the disabled condition and executed the Dynpro. The form is automatically submitted which leads to an error because the customer number is empty.
    When I try to enter a customer number, the submit button is disabled after I've entered the first digit.
    So, I do not think that disabling the submit button will help. Somehow there should be a way to configure the application so that the form is not automatically submitted. Do you or does anyone else have a suggestion?

  • Forms with Required Fields

    I have created a form that needs some required fields (using GoLive CS1). I have found NateMail which looks wonderful, but it requires the server to use PHP. On this forum, I found Nate's great instructions to test the server for PHP capability, and they failed the test. Do I have other options? Any suggestions? I'm fairly new to forms, so the easier the better. Thanks so much!
    Judy
    (Many thanks to Nate who has been a great help to me on many fronts during my web apprenticeship!)

    Thanks, Nate --- I will check with them to see if they have alternatives, although I think I'm going to suggest my client switch hosts. I'm not that familiar with all the technical jargon, but they have indicated before that they use Cold Fusion when we've talked about other form issues. (I don't know if that offers any leads on alternatives.) We do have 3 basic, functioning forms operating via their server, but we want to have some required fields where the viewer can't proceed without providing some info. Anyway --- thanks so much for your help --- it's much appreciated!

  • Need help with a BR - Please help !

    Hi,
    I would please request you to help me with your ideas on achievening the below requirement. I have ideas on doing this but I am not able to put together everything to make it work. Please let me know your thoughts. Will be a great help.
    Requirement:
    The requirement is that if the user enters a data value for Account member "P" on the data form at any level (Top most parent level, intermediate parent levels or 0 level) it should work in the following way.
    1) It needs to check at which level the user entered the value for "P". We have a relation that V = P * T. So what I thought is if I dynamically calculate the "V" value everytime for every product I should know at which place they changed it as if they change the "P" value it would change the "V" value too as both are linked. So, basically I am comparing the stored "V" value with dynamically calculated "V" value.
    2) If the "V" value has been changed at that level (i.e. if stored V Dyn. V) and this condition is met then, all the descendants of that current member should get the same P value as entered by the user for the current member.
    3) This should work irrespective of which parent level they enter and should start filling in the values from that level. And if they enter "P" value at 0 level members, then it should leave them as it is without overriding it and should be used in consolidation.
    This is what I could think -
    Please suggest changes as this is not working still as per the requirement.
    FIX(..........)
    IF (@ISDESC ("LB") AND "V"->@PARENT(@CURRMBR(Product)) P->@PARENT(@CURRMBR(Product)) * T->@PARENT(@CURRMBR(Product)))
    P->@CURRMBR(Product) = @PARENTVAL (Product,P);
    Similarly IFELSE for another condition
    ENDIF
    ENDFIX;
    But this is not working for all the cases. Lets say I have 3 levels in my hierarchy for Product and if the users are entering at level 2 it is not working and replacing the input value with its parent value which I am not sure why as it should in first place not enter the loop only as the condition wont be met. Reason, the user changed at level 2 and not 3 so it should do nothing from what I understand.
    Please let me know your thoughts.
    Thanks.

    You can try something like this. Instead of dynamic V account add "P_Stored" member. If "P" account has data copy that data to "P_Stored" at all levels of the Product hierarchy. Based on your post I understand that Product hierarchy is evenly distributed than business rule can be like this:
    FIX(@LEVMBRS("Product",2))
    "P_Stored" (
    IF("P_Stored" != @PARENTVAL("Product","P")
    "P_Stored"=@PARENTVAL("Product","P");
    "P"=@PARENTVAL("Product","P");
    ENDIF
    END
    FIX(@LEVMBRS("Product",1))
    "P_Stored" (
    IF("P_Stored" != @PARENTVAL("Product","P")
    "P_Stored"=@PARENTVAL("Product","P");
    "P"=@PARENTVAL("Product","P");
    ENDIF
    END
    FIX(@LEVMBRS("Product",0))
    "P_Stored" (
    IF("P_Stored" = "P")
    /* I believe do nothing */
    1==1
    ELSEIF("P_Stored" != @PARENTVAL("Product","P")
    "P_Stored"=@PARENTVAL("Product","P");
    "P"=@PARENTVAL("Product","P");
    ENDIF
    END
    FIX(@LEVMBRS("Product",3))
    "P_Stored" (
    IF("P_Stored" != "P")
    "P_Stored"="P";
    ENDIF
    END
    If Product hierarchy is ragged then code should be changed...
    Regards,
    Yuri
    Edited by: yrozen on Oct 26, 2011 6:48 AM

  • Help with photo albums Please

    Hi, i really need some help with my pictures, I've only got a very basic understanding of how my phone works and have somehow put a load of albums on my phone when i plugged it into the computer-I want to delete some of them off the phone but cannot work out how to do it, when i plug my phone in i can find the photo tab but cannot actually see the pictures and can't see any delete button!!! Please can someone help me, basic explanations would be gratefully recieved xxxx

    The photo sync is one way: computer to phone. To remove photos, synced to your phone, remove the check marks next to the albums/folders under the photos tab in itunes & hit the apply/sync button. They will be removed from your phone. You cannot delete photos that were synced to your phone, directly on your phone. The easiest way to manage photos synced to your phone is to create albums or folders on your computer. Move whatever photos you want on your phone into these albums/folders & then select them under the photos tab in itunes to sync to your phone. You can then remove or add photos to these various albums/folders on your computer & the itunes sync process will update your phone every time you sync.

  • Tab canvas with required fields (problem)

    hi,
    I am using tab canvas with 5 tabs with diff blocks.
    receive
    issue
    adjust
    return
    view
    some fields are required in all tabs.
    when i run the form and in RETURN TAB and enter some data and click the save button the cursor goes to receive tab and focus the required fields with a message
    FIELD MUST BE ENTER
    same for issue tab also...
    i dont want to enter any thing there ..
    how i manage it
    thanks

    Not sure if I understand you correctly. You say some fields are required in all tabs, but also that you 'don't want to enter anything here'. Do you mean that the fields are required, but only if you're entering data on that specific tab? I.e. you don't have to enter all of the tabs.
    If that's the case, are all the tabs based on the same block, or different blocks?

  • Help with Validation Problem Please

    I don't understand this validation and don't know how to fix it. I have checked my other websites and they seem fine. I don't think I have done anything different The link for the website ishttp://www.greenpatchwebsites.com/pow/index.html
    and the validator is http://validator.w3.org/check?uri=www.greenpatchwebsites.com%2Fpow%2Findex.html&charset=%2 8detect+automatically%29&doctype=Inline&group=0
    Please can you help.
    Thank you very much in advance.

    Thanks for that. I have tried it on a new page: http://www.greenpatchwebsites.com/pow/newtest.html and here is the validator :
    http://validator.w3.org/check?uri=www.greenpatchwebsites.com%2Fpow%2Fnewtest.html&charset= %28detect+automatically%29&doctype=Inline&group=0&No200=1- unfortunately loads of errors
    I also tried the recommended template:
    Use the following markup as a template to create a new XHTML 1.0 document using a proper DOCTYPE. See the list below if you wish to use another document type.
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
         <title>An XHTML 1.0 Strict standard template</title>
         <meta http-equiv="content-type"
              content="text/html;charset=utf-8" />
         <meta http-equiv="Content-Style-Type" content="text/css" />
    </head>
    <body>
         <p>… Your HTML content here …</p>
    </body>
    </html>
    but was getting errors with that. As you can tell, I need serious help with this. Which doc type should I be using
    and why doesn't Dreamweaver just do it for you when you select one?
    Thanks very much again in advance.

  • Help with Option 3 please

    A week ago I was on Option 1 but due to heavy use my speed was reduced to 15.7k/sec !.I was advised to upgrade to Option 3 which I promptly did and that was done on the 29th(last week).
    My speed though is still 15k/sec and I cannot watch any streaming video or BBC News Channels etc
    Would some kind gentleman please look into it for me and advise.......thankyou
    Solved!
    Go to Solution.

    Hi Pete,
    I am sorry for the delay in getting back to you.  I picked your email up this morning and have dropped you a reply.  I am pleased that you managed to sort this out, if you need any further help just let me know.
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Help with Windows Sharing Please

    Hello,
    I am new to Mac and this is my first mac book 17 running Mac OS X 10.4.8 pro i've purchased through work. I only recieved this 2 days ago. I am having a problem connecting to my windows 2003 active server / domain controller at work and I am having a problem connecting to my windows xp computer share at home when i take my laptop home with me.
    At work I am connecting to my network via wired built in ethernet with the following ip
    IP - 10.43.144.190
    SN - 255.255.240.0
    GW - 10.43.144.2
    DNS1 - 10.43.144.80 - This is my primary Domain controller DNS
    DNS2 - 10.43.144.81 - This is my secondary Domain controller DNS
    I also have parralels installed running windows xp for my proprietary software that only run on xp with the following address
    IP - 10.43.144.191
    SN - 255.255.240.0
    GW - 10.43.144.2
    DNS1 - 10.43.144.80 - This is my primary Domain controller DNS
    DNS2 - 10.43.144.81 - This is my secondary Domain controller DNS
    the only difference is that my ip has change.
    The problem that i am having is when i go to the finder and network i see all my computers on the network even my windows server. but it won't let me connect. i get an error the the alias no longer exsits do i want to fix or delete.
    So i try installing directory access plug-in via directory access and when i go to connect to my domain controller i get an error that it cannot find or resolve my domain name.
    Know if your familiar with stupid windows in order for you to connect to AD your computer must be able to resolve the domain name via DNS. to when i go to ping my domain name eg. my.company.com i get an error cannot resolve. but when i ping the ip address it sees the server.
    So the first problem that i see with mac is that for some reason it resolves the ip address but i need it to resolve the domain name, and i can't for the life of me figure out how to do this.
    and if your answer is to modify the hosts file - i tried that and if your familiar with windows networking that won't work on windows machines either - again STUPID WINDOWS.
    So in short how do i connect to my 2003 AD Server.
    The reason i know that my laptop will connect to my domain is that remember i installed parralels on this macbook with windows xp. well guess what - you got it, I connect to my domain. so i know that it isn't a hardware issue or a network issue its a mac issue.
    Finally i am having the same problem at home connecting to my network via the airport. I see my computer but cannot connect to my computer with windows xp shares. Any suggestions?
    If anyone could help me it would be much appreciated. I tried calling MAC support and they were no use. They said they were transfering my problem to the engineers. and then they said that they couldn't help me becuase its beyond their scope of repairs. but if its a mac os x problem how can it be beyond their repair? I mean come on I purchased this mac for work, told by the sales man that i would have no problems and that mac support is there for me if i cannot connect but they seem like they aren't. I could've went and purchased a dell and not have this headache of connecting to my server of workstation.
    Again sorry for the ranting but if anyone can help me out it would be much appreciated

    Not to sure how to direct you with your issue at home, but here is some help with the server at work.
    As I know it, you have two routes. You are obviously (to me) familiar with networking so you might already know that you can install File Services for Macintosh on the server. It's a component of Windows Server that allows you to connect Macs via AFP to the server. Just install it, share a folder and connect via AFP. Easy, but the drawback is that you are limited to 31 character filename lengths on the Mac share.
    I am assuming you want to stay SMB. For that, you need to disable SMB signing on the server via a Group Policy. Here is a link describing that:
    http://simultaneouspancakes.com/Lessons/archives/2004/12/howtodisable.shtml
    Also, Microsoft has an article on binding a Mac to the domain. It's not necessary, but you can do it if you want to get Active Directory working between the Mac and the server. It will require that the long username for an Admin user on the Mac be exactly the same as a user on the Windows network. If it's different, it won't bind.
    I don't know how that will affect your laptop when in use at home.
    Hope that helps.

  • Help with button code please?

    I am a novice and have just completed my first animated movie. I need help with action script.
    The movie is currently looped and I have created and invisible button the size of the frame with the intention that a user can click on the movie image to stop it and on second click continue the movie from where it stopped.
    I have used the AS event handler method to stop the movie. I have tested it and it works. But I cannot figure suitable code to restart the movie.
    Two questions;
    1. am I going about the task the right way? (should I use two buttons, one stop, one start)?
    2. if my approach is feasible, can anyone give me the correct AS to re-start the movie and put me out of my misery please?

    you can use the following after changing "yourbutton" and "yourmovieclip" to use suitable instance names:
    yourbutton.onRelease=function(){
    if(!this.toggle){
    yourmovieclip.stop();
    } else {
    yourmovieclip.play();
    this.toggle=!this.toggle;

Maybe you are looking for

  • Moving TM to new drive- will old drive format copy to new drive?

    Hello, I'm moving my TM backup to a new (larger) drive using Disc Utility. I've read the posts and know what to do, BUT... if I click "erase" and do a "restore" to move the data, will this make the new drive have the same format as the old drive? I t

  • Require Fields Before Printing

    I've been looking through the documentation of Adobe Live Cycle Designer and cannot find my answer. I have two fields, which I would like to be required. Upon a user pressing the print button, if these fields are empty, require it before the form wil

  • HDV 720p 24@23.98

    Hi! We are triying to capture some material which its supposed to be at 24 fps in FCP 5.1.2 not passing through Lumiere but we only got material in 23.98. Does anybody knows why is that? It isn't soppoused to be like this.... If somebody has an answe

  • Ibook loops on loginwindow

    i had my ibook for 2 years now, never made any problems, but yesterday i updated it to the 003 security update and had a kernel panic in boot time (the gray screen). i entered form single user mode, and deleted everything in startup items. the kernel

  • Bdcdata

    Hi all,        Could you please explain me this BDC program logic flow? data : begin of bdc-data occurs 100.               include structure bdcdata. data ; end of bdc_data. perform dynro using : 'X' 'SAPLMGMW' '0100', '' ' 'bdc_cursor' 'msichtausw-d