Response from the user based on the capture option button

I'm trying to capture the user's response based on the answer Yes or no to a required option button.  If they say yes, they need provide details.  Radio button values N and Y, nothing listed under the item, the captions are turned off. I used the sample LiveCyclePopUp.pdf by George Kaiser as a go - by and changed to my name of the radio button field/text and added the invisible/visible, but no luck.

Here's what I'm trying, but it doesn't, nothing happens when I click either Yes or no, use javascript.

Once it is not working properly, if possible, I would like to add to my button "submit" a double check to make sure if this radio button answer is Y and the text box is null, go back and give the answer, but the most important part is to get this working of the part.  Any ideas what I'm missing?  Thank you!

switch (this.rawValue)
{
    case "Y":
    Response25AY.presence = "visible";
    Response25AY = xfa.host.response("Please enter "YES" details (date, injury details, corrective action) below", "Q25A YES DETAILS", "Please enter "YES" details (date, injury details, corrective action) here . . . ");
    break; 
    
    case "N":
    Response25AY.presence = "invisible"; 
    break; 

}

Hello

First of all, the syntax is JavaScript, so when the Response25AY setting, you must include .rawValue:

Use of quotes in the script will give an error of syntax (around the YES).

A small note: I would not repeated the question as a default value. It does not really add value.

So this should be the closer:

Response25AY.rawValue = xfa.host.response("Please enter YES details (date, injury details, corrective action) below", "Q25A YES DETAILS");

Can you check the relative reference of the radio to the Response25AY object group. It may be that the reference in the script is not full enough and that it is incomplete.

Also I place this script in the click event of the radio button exclusion group.

Finally, check the JavaScript Console (control + J) when previewing the form, to find errors.

Hope that helps,

Niall

Tags: Adobe LiveCycle

Similar Questions

  • How to open the window pop-up that requires no response from the user

    Hi - in javascript, I want to open a message window small, very similar to what you get w / an alert or confirm, but who do not require (or allow) a response from the user.

    It displays a message "wait...". "while a process finishes. So, I would like to raise
    the window/message box before the process starts, let the process work, then
    When it is finished, close the window by using the code - not because of user input.

    Is there an easier way to do this than w / window.open? I'm really not together
    new window browser... just a message.

    Thank you
    Carol

    Hello

    It was actually some other colors as well for titles and the community table.

    I've updated my page to use the 15 theme color palette and add a title for the popup. Of course, the normal alert/confirmation messages appear differently in different browsers, so there is no style of message that I could imitate - I just used colors and something resembling theme 15 ish

    Andy

  • receive the same response from the server - glued

    Hello

    I write a simple client/server application. I'm a little stuck on the same response from the server. Instead of sending and receiving plain text, I chose to wrap messages in the command objects (containing a statement and a list of values). He worked for a while, until I realized that I continue to create new objects for each request and response to and from the server. I thought that it's a waste, so I created a reset method (commands command) to update the same object instance instead of creating new command objects. And since I get the same response from the server.

    I've debugged client and the server, and I see that it is as if the server does not read a new order, but he is stuck on the last (which is the first).

    It's the class ServerThread run() method:
    @Override
        public void run() {
            try {
                out = new ObjectOutputStream(socket.getOutputStream());
                in = new ObjectInputStream(socket.getInputStream());
                Command fromClient = null, toClient = null;
                Protocol p = new Protocol();
                
                try {
                    //Reading input from Client
                    while ((fromClient = (Command) in.readObject()) != null) {
                        toClient = p.processInput(fromClient);
                        out.writeObject(toClient);
                        
                    }
                } catch (EOFException e) {
                    //Swallow this exception
                } catch (ClassNotFoundException e) {
                    e.printStackTrace();
                }
    
                out.close();
                in.close();
                socket.close();
                
            } catch (SocketException e) {
                //Swallow this exception
            } catch (IOException e) {
                e.printStackTrace();
            } finally {
            }
        }
    It's the processInput (...) method of the class of Protocol:
    public Command processInput(Command fromClient) {
    
    
            if (fromClient.getCommand() == Commands.REQ_GREET_ME) {
                currentCommand.reset(Commands.REPLY);
                currentCommand.addValue(new Value("Welcome to the Aardenon server."));
    
            } else if (fromClient.getCommand() == Commands.REQ_PLAYER_COUNT) {
                currentCommand.reset(Commands.REPLY);
                currentCommand.addValue(new Value("There are " + AcceptorThread.threadCount() + " players online."));
    
            } else if {
                //Some other commands...
            }
            return currentCommand;
            
        }
    It's the method of hand (...) (shortcut) to the customer class:
    public static void main(String[] args) {
    
            ClientUI clientUI = new ClientUI();
            clientUI.printWelcome();
    
            Socket socket = null;
            ObjectOutputStream out = null;
            ObjectInputStream in = null;
            BufferedReader stdIn = null;
    
            try {
                socket = new Socket("localhost", PORT);
                if (socket != null) {
                    clientUI.printConEstablished();
    
                    out = new ObjectOutputStream(socket.getOutputStream());
                    in = new ObjectInputStream(socket.getInputStream());
                    stdIn = new BufferedReader(new InputStreamReader(System.in));
    
                    Command currentCommand;
                    CommandCreator commandCreator = new CommandCreator();
                    Command toServer = new Command(), fromServer;
                    String fromUser;
    
                    try {
                        
                        toServer.reset(Commands.REQ_GREET_ME);
                        out.writeObject(toServer);
                    
                        fromServer = (Command) in.readObject();
                        if (fromServer != null) System.out.println(fromServer.getValue(0).get());
    
                        toServer.reset(Commands.REQ_PLAYER_COUNT);
                        out.writeObject(toServer);
    
                        fromServer = (Command)in.readObject();
                        if (fromServer != null) System.out.println(fromServer.getValue(0).get());
    
                        //Here some more conversation based on user input...
                        
                        //Handle exceptions  and finally...
    I hope that the code is self-explanatory.

    PR.

    Try to play with ObjectOutputStream.reset (). My understanding is that the same object to write to the stream of data twice causes some kind of optimisation whereby the second time that only a reference to the first serialized object is written. Reset() can cause the object to rewrite it completely in its new State.

    PS: Creating objects is cheap these days. Don't feel that you were running a premature optimization? I'm not saying you do, just be wary of him! You can already see a negative effect of it: more fragile code and more complicate.

  • No response from the keyboard on Equium M40X

    Hi all

    Posted before on this problem, just mounted a new keyboard, but getting no response from it, the luminous numbers lock is on, but nothing works, it is a new keyboard, my old one was doing the same thing, reinstalled the system using a usb keyboard but still the same, no response from the keyboard, any ideas?

    Hello

    Connect the flat keyboard cable properly to the motherboard?
    Make sure that the keyboard cable is firmly connected to the system board.
    If the internal keyboard has been correctly connected, so I think there must be something wrong on the motherboard.

    I think detailed diagnosis can be done by a technician with experience much more as a common user like you and me.

  • Mailbox unavailable. The response from the server is: 5.7.1 error: content rejected

    I have an application that sends emails when running. Off late a user when he tries to send a mail it receives the following error message...

    "System.Net.Mail.SmtpException: unavailable mailbox." "The response from the server is: 5.7.1 error: content rejected '...

    Note that this happens when he tries to send mail to itself and not otherwise. Can someone here on which could mean the error? Thanks in advance... :))

    Error code is generated in the back-end.

    'System.Net.Mail.

    to System.Net.Mail.

    to System.Net.Mail.

    to System.Net.Mail.

    to System.Net.ClosableStream.

    to System.Net.Mail.MailWriter.

    to System.Net.Mail.SmtpClient.

    Hi guys,.

    Thanks for the reply!

    I contacted my sources by taking care of the servers and realized that the user was an id in which the address of the server was not set up with our servers in domain. He used to connect to our servers using the VPN client. This is why he could not send mails to id field not (in this case itself).

  • No error response from the server when the file transfer

    Hi, I just changed my Web site a server based on windows to linux. I was not in trouble, and now I can't get my files to load on the server. I contacted the server provider who has tested the things to their end and say that the problem is with dreamweaver. This is the message I get...

    n response o server when the transfer of file... reconnection.

    It is said that it is to put the file, and then I get this message again...

    no response from the server during the transfer. 2 attempts.  Retry or cancel?

    If I hit Cancel, then he starts to put the file and it will sometimes, sometimes not.

    Now, if I managed to pass the file, when I post it on the web and click on the link it says the file is damaged or corrupted.

    Someone has any idea how to solve this problem? I'm new to web design and dreamweaver and I thought that maybe the problem is related to the definition of my site, but I don't see that there is a problem. I noticed that before I changed the definition of site for the linux server I could easily preview my pages in the browser without having to post it on the site. Now when I try to preview my page it says that I have to put on the site to view. Which could be related?

    I work on a Mac and you have not installed a firewall.

    Any help is very appreciated!

    Thank you!

    In the Site settings (Advanced Mode) it is an option when configuring the remote for passive mode FTP connection.  Try to check that box and see if you are able to connect.

  • error message when try to sync the iPhone, "invalid response from the device?

    What can I do when I receive this error message when you try to sync to my iPhone 5 s - "invalid response from the device?

    -What are your 5 updating to 10.0.2 iOS iPhone? If this is the case, you must have the latest version of iTunes on your computer, which is required for Mac OS X 10.9.5 12.5.1, or above. To meet these specifications will be receiving this error.

  • Cannot connect iPhone 7 more to iTunes because an invalid response from the device

    I tried to sync my phone to iTunes and I get an error message stating "invalid response from the device. I tried to remove the password, and it still doesn't work. I also tried using a new USB cord. I'm doing something wrong? I can't sync my music or ringtones. Will there be an update to iOS 10 soon to solve this problem? I am extremely disappointed that I can not connect my new phone!

    You use iTunes version 12.5?

    Get the latest version of iTunes - Apple Support

  • No Satellite Pro 6100 no response from the screen

    Can anyone help?

    My 6100 Pro Satellite lit last night then automatically went into hibernation, despite being connected. Now when I turn it on there is no response from the screen, but if I plug a monitor to the laptop, the screen works (as long as I start in safe mode)

    Can anyone help?

    Hi Simon

    Disconnect all cables from the laptop and remove the battery.
    Wait a moment more (20 min) and reconnect the battery and the AC adapter.
    Then check if the laptop turns on and if the display works fine

    Good luck

  • An error has occurred has not got a response from the software update server (update.local). What should I do to update my laptop?

    An error has occurred has not got a response from the software update server (update.local). What should I do to update my laptop?

    It is one of the many problems that occur on my mac.

    Update of OS X El Capitan 10.11.4?

    1. backup Mac.

    2. install 10.11.4 combo update.

    https://support.Apple.com/kb/DL1869?viewlocale=en_US & local = en_US

  • NB200-h-13 - no response from the DNS server and gateway

    Hello

    I have netbook NB200-h-13 with XP SP3. Its impossible to connect to wireless internet and the error messages are
    HE DIDN'T THERE WAS NO RESPONSE FROM THE DNS SERVER
    HE DIDN'T THERE WAS NO RESPONSE FROM THE DEFAULT GATEWAY

    The connection with the ethernet cable is ok with the adpter reltek that also adpter atheros ar9285 WiFi is activation, working properly and the modem router signal is strong.

    Hi abk55,

    What program you receive this error message?
    Have you tried another browser, for example Firefox or Opera?

    I guess it has something to do with your wireless network card or WLAN parameters if the LAN cable is working properly. So you should try to update the WLAN driver on the Toshiba site.
    Also, try to disable the filtering of MAC addresses and use another encryption.

  • Satellite Pro P100: Wlan with no response from the server proxy C-27

    I have a laptop model Satellete Pro P100 and tries to connect to a wireless router.
    I was able to connect to it over the past four months.

    Last week, I connected to a wired network and now he refuses to re - connect to my home wireless network. He acknowledges that I am connected but connectivity doctor says "there is no response from the server proxy (c-27).

    A friend in the House is able to connect to the internet with their computer without problem.
    I have tried everything I know, but need help please. Thank you

    Hello

    Have you checked in the properties of Wlan settings and the TCP/IP properties?
    Please check if the options: IP automatically get an address and get server address DNS are automatically set correctly.

  • Receiving the message "Wireless association failed because Windows did not receive response from the access point or wireless router" _

    My laptop was working fine yesterday, but when I started it today I get the message "Wireless association failed because Windows did not receive response from the access point or wireless router.

    I can see my network and I can connect to the internet using my desktop pc, but just to make complicated I can't even connect to the network when I plug the ethernet cable into my laptop.

    I think it might be a driver problem, but I have no idea how to solve this problem without access to the internet on my laptop.

    I'm running Vista and my wireless router is an Atheros AR5009 809.11a/g/n

    I need step by step instructions on this Yes please treat me like a fool!

    Thank you

    Laptop would not work at home thus concluded that it was a BT Broadband do not issue my driver (despite BT telling me the opposite last night)

    After the call to a fantastic Lady in BT it's all fixed and thanks to Jack I now know a lot more on connecting wireless to my laptop!

  • response from the Office

    Can someone please tell me, if it's possible on Windows Mail (not Outlook) how we implemented an automated response from the Office?

    Can someone please tell me, if it's possible on Windows Mail (not Outlook) how we implemented an automated response from the Office?

    Here are the instructions:
    http://email.about.com/od/windowsmailtips/Qt/Vacation_Auto_Response_in_Windows_Mail_or_Outlook_Express.htm

    Don't forget: your computer must be turned on 24/7.

    t-4-2

  • No response from the seller ID number of package support

    Hi all

    Anyone fron blackberry can help me on this problem.

    On March 30, I applied for the support of the seller to change the package ID.

    March 31, I got the answer of the global team blackberry on the change of package IDS.

    On April 2, I sent the email to the world of blackberry team to make sure that I want to change my package ID.

    But 4 days no past, no response from the world of blackberry team.

    The email said they need of 24-48 hours for response. This means that the time of day? No weekend?

    Thank you

    brad_qqq

    Hi bvanengelen,

    Thanks for the information. The world of blackberry team have sent e-mail to me. They have already taken my package ID.

    Thank you

    Liang

Maybe you are looking for

  • Screen/hinge Portege M100 problem

    I have a Portege M100 and have a slight problem with the screenThe screw on the left has out & disappeared. This left the very "wobbly" screen and it seems to have jumped off a plug or two, just on the left side as the case/wallpaper sometimes seems

  • Guest account "secure"?

    I have a Linksys E1000 ver 2. I noticed, after setting up a guest account with its own password (using Cisco Connect), which, on the list of available WiFi signals, that the guest account appears as not not "sure". In other words, other accounts in t

  • scanjet2300c: scanned

    Hi I have an old 2300c hpscanner that works perfectly on my old Windows XP computer. However on my laptop Windows 7 it is impossible to use it, even if the CD is available. Is there a driver available for this configuration?

  • Upgrade for the WLC code questions

    We 6.0.132 (lastest) WCS and our controllers are on 4.2.130, we now to upgrade to deal with sometimes, but don't want to capwap yet. Question 1: what is the last exit LWAPP code? Question2:Whats the differences between 4.2.207 (support page for cisco

  • RAW, ViewNX2, DNG Converter... still does not

    I tried for days and my brain is exhausted.Recently bought a Nikon D7100.I have PS CS5. Camera Raw 6.3 ViewNX2. DNG Converter.As you already guess - I can't open raw files.If I read correctly, CS5 supports that Camera Raw 6, 3 - but I need 7.4 to ope