The hidden fields and deleted context

I created a form with text fields that are visible or hidden depending on the selections that you made in the previous two menu drop-down lists. The user of the form has fields of different type based on their choice text. The problem I have is that I want only to preserve the content of the visible field and do want the contents of the visible field to be saved in the XML of the .csv file. In other words - if they make another choice in the drop-down lists to "activate" the different text fields - the text in the previously visible text fields would be deleted. I'm sure that logic has something to do with "If presence = hidden, then value = null", but I'm completely new scripting in LiveCycle and don't have no idea how to write this.

I don't see a way to view a PDF file, but I inserted my code below.

----- form1.#subform[0].VariableLocation::exit: - (JavaScript, client) -----------------------------

//Clear out the StaticLocation DropDown list
StaticLocation.rawValue = "";
StaticLocation.clearItems();


switch (this.rawValue)
{
case "Top Center  ":
StaticLocation.addItem("Lower Right");
StaticLocation.addItem("None");
break;

case "Lower Right":
StaticLocation.addItem("Top Center  ");
StaticLocation.addItem("None");
break;

case "Top Center":
StaticLocation.addItem("Lower Left");
StaticLocation.addItem("None");
break;

case "Lower Left":
StaticLocation.addItem("Top Center");
StaticLocation.addItem("None");
break;
}



//TextFields 1a-4a


if (this.rawValue == "Top Center")
{
     TextField1a.presence = "visible"; 
}
else
{
     TextField1a.presence = "hidden"; 
}

if (this.rawValue == "Lower Left")
{
     TextField2a.presence = "visible"; 
}
else
{
     TextField2a.presence = "hidden"; 
}

if (this.rawValue == "Top Center  ")
{
     TextField3a.presence = "visible"; 
}
else
{
     TextField3a.presence = "hidden"; 
}

if (this.rawValue == "Lower Right")
{
     TextField4a.presence = "visible"; 
}
else
{
     TextField4a.presence = "hidden"; 
}



//TextFields 1b-4b


if (this.rawValue == "Top Center")
{
     TextField1b.presence = "visible"; 
}
else
{
     TextField1b.presence = "hidden"; 
}

if (this.rawValue == "Lower Left")
{
     TextField2b.presence = "visible"; 
}
else
{
     TextField2b.presence = "hidden"; 
}

if (this.rawValue == "Top Center  ")
{
     TextField3b.presence = "visible"; 
}
else
{
     TextField3b.presence = "hidden"; 
}

if (this.rawValue == "Lower Right")
{
     TextField4b.presence = "visible"; 
}
else
{
     TextField4b.presence = "hidden"; 
}





//TextFields 1c-4c


if (this.rawValue == "Top Center")
{
     TextField1c.presence = "visible"; 
}
else
{
     TextField1c.presence = "hidden"; 
}

if (this.rawValue == "Lower Left")
{
     TextField2c.presence = "visible"; 
}
else
{
     TextField2c.presence = "hidden"; 
}

if (this.rawValue == "Top Center  ")
{
     TextField3c.presence = "visible"; 
}
else
{
     TextField3c.presence = "hidden"; 
}

if (this.rawValue == "Lower Right")
{
     TextField4c.presence = "visible"; 
}
else
{
     TextField4c.presence = "hidden"; 
}





//TextFields 1d-4d


if (this.rawValue == "Top Center")
{
     TextField1d.presence = "visible"; 
}
else
{
     TextField1d.presence = "hidden"; 
}

if (this.rawValue == "Lower Left")
{
     TextField2d.presence = "visible"; 
}
else
{
     TextField2d.presence = "hidden"; 
}

if (this.rawValue == "Top Center  ")
{
     TextField3d.presence = "visible"; 
}
else
{
     TextField3d.presence = "hidden"; 
}

if (this.rawValue == "Lower Right")
{
     TextField4d.presence = "visible"; 
}
else
{
     TextField4d.presence = "hidden"; 
}




//TextFields 1e-4e


if (this.rawValue == "Top Center")
{
     TextField1e.presence = "visible"; 
}
else
{
     TextField1e.presence = "hidden"; 
}

if (this.rawValue == "Lower Left")
{
     TextField2e.presence = "visible"; 
}
else
{
     TextField2e.presence = "hidden"; 
}

if (this.rawValue == "Top Center  ")
{
     TextField3e.presence = "visible"; 
}
else
{
     TextField3e.presence = "hidden"; 
}

if (this.rawValue == "Lower Right")
{
     TextField4e.presence = "visible"; 
}
else
{
     TextField4e.presence = "hidden"; 
}





//TextFields 1f-4f


if (this.rawValue == "Top Center")
{
     TextField1f.presence = "visible"; 
}
else
{
     TextField1f.presence = "hidden"; 
}

if (this.rawValue == "Lower Left")
{
     TextField2f.presence = "visible"; 
}
else
{
     TextField2f.presence = "hidden"; 
}

if (this.rawValue == "Top Center  ")
{
     TextField3f.presence = "visible"; 
}
else
{
     TextField3f.presence = "hidden"; 
}

if (this.rawValue == "Lower Right")
{
     TextField4f.presence = "visible"; 
}
else
{
     TextField4f.presence = "hidden"; 
}






//TextFields 1g-4g


if (this.rawValue == "Top Center")
{
     TextField1g.presence = "visible"; 
}
else
{
     TextField1g.presence = "hidden"; 
}

if (this.rawValue == "Lower Left")
{
     TextField2g.presence = "visible"; 
}
else
{
     TextField2g.presence = "hidden"; 
}

if (this.rawValue == "Top Center  ")
{
     TextField3g.presence = "visible"; 
}
else
{
     TextField3g.presence = "hidden"; 
}

if (this.rawValue == "Lower Right")
{
     TextField4g.presence = "visible"; 
}
else
{
     TextField4g.presence = "hidden"; 
}







//TextFields 1h-4h


if (this.rawValue == "Top Center")
{
     TextField1h.presence = "visible"; 
}
else
{
     TextField1h.presence = "hidden"; 
}

if (this.rawValue == "Lower Left")
{
     TextField2h.presence = "visible"; 
}
else
{
     TextField2h.presence = "hidden"; 
}

if (this.rawValue == "Top Center  ")
{
     TextField3h.presence = "visible"; 
}
else
{
     TextField3h.presence = "hidden"; 
}

if (this.rawValue == "Lower Right")
{
     TextField4h.presence = "visible"; 
}
else
{
     TextField4h.presence = "hidden"; 
}




//TextFields 1i-4i


if (this.rawValue == "Top Center")
{
     TextField2i.presence = "visible"; 
}
else
{
     TextField2i.presence = "hidden"; 
}

if (this.rawValue == "Lower Left")
{
     TextField1i.presence = "visible"; 
}
else
{
     TextField1i.presence = "hidden"; 
}

if (this.rawValue == "Top Center  ")
{
     TextField4i.presence = "visible"; 
}
else
{
     TextField4i.presence = "hidden"; 
}

if (this.rawValue == "Lower Right")
{
     TextField3i.presence = "visible"; 
}
else
{
     TextField3i.presence = "hidden"; 
}
 

.

Yes

Tags: Adobe LiveCycle

Similar Questions

  • How to reset the Status field and delete ToDo list outside the user interface?

    All, morning

    HR 802 generating WebHelp.

    I made use of the status field and ToDo List in the past. For my next release aid, I would like to reset these fields for all the subjects, so I can still have accurate reports as subjects of creation/revision of the final course.

    Is it possible to do without opening each topic in the user interface and compensation/change manual fields? (I thought to delete all fields of ToDo and recreate them, but thought that there is an easier way.) This information appears in each section or in a separate file?

    Thank you

    Patrick

    Hi Patrick

    1. Close all topics that can be opened in the editor.
    2. Open the pod of the list of topics.
    3. Select all subjects.
    4. Right-click and choose Properties from the subject.
    5. Click the status tab.
    6. Modify if needed.

    All subjects should change to reflect the new status and the task list settings.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • The hidden fields and multiple responses

    Hello

    I have a form that consists of drop down lists and hidden fields, depending on the response to the drop-down list, then a hidden field appears. I am bad at work is how the code if a user answers Yes to the first drop-down list, this then invites a fall lower, who once answered will 3 more open fields.

    Example of

    Question 1 individual or company answer person of company

    Question 2 is a new client yes/no

    (if the user has answered no then this can encourage an another series of questions according to what the user has answered the question 1)

    For individual would ask the question

    Question require us proof of address

    For the company would ask the question

    Question require us registration of the company

    How can I hide the fields initially and show them only according to the combination of the answer.

    Any help would be appreciated

    Thank you

    I created a simple example for you. Note that the code that shows and hides is about the e eexit event of the DDLists. I put the parts of the evidence of address in a subform, and I have to hide the subform to hide all of its child components... I don't have to hide each component of the object of the evidence in the record. Also, the form must be saved under Dynamics for the presence changnes is taken into account.

    Hope that helps

    Paul

  • Reset the hidden fields

    My form begins with a form of sub header with checkboxes. The user controls a box they need and its corresponding subform is displayed. Works fine, right? The problem comes when it comes to reset the fields. I hit the reset button and all data will be deleted, HOWEVER the hidden fields are always visible? How to reset it it ALL to look exactly as it is when you first open? Thank you

    You need to explicitly reset the values of the hidden fields. Go to the click event of the reset button, then set it to null in hidden fields. For example,.

    Form1.Page1.ResetButton1::click - (JavaScript, client)

    xfa.host.resetData ();

    TextField1.rawValue = null;

    Steve

  • Need a script to display the hidden field if number = 568845

    Hi all

    Using Acrobat Pro 9.1 on iMac with OS 10.6.8

    I am working on a form to fill out and need a script to display a hidden field when a button is clicked.

    I've set up a numeric field to type a number, and the hidden field is "text1".

    Now, I need a script to the button open only the hidden field, if the field number = 568845

    In this way the customer can fill in the code and then show and type in the field.

    Any help would be appreciated.

    Ron

    Given that you use it by a button, you can't use event.value because a button has no value, and in any case, you want to check the value of another field. So this place like your button MouseUp event (of course, you have to adapt the name of the text field...):

    If (this.getField("Text1").value == "568845") {this.getField ("Hidden_Field") .display = display.visible} else {this.getField('Hidden_Field').

    display = display.hidden}

  • cfformitem type = & quot; script & quot; : how to set the value of the hidden field?

    I have a simple test form that contains a cftree and some fields of seizure/hidden. Whenever a tree node is selected, I want to change the values of the fields of entry/hidden to some node is selected. Pretty simple, but I can not understand how to change the values of the hidden fields.

    Load the form, select "ItemA" and click on submit. Do not change the values of the hidden form fields. They are always "not defined". What is the correct syntax to change the value of the hidden field?


    The correct syntax is

    myForm.theID = 'theID = "+ valueString;

    Ken

  • Had two files the same titled and deleted somehow the wrong file - how can I restore it

    original title: deleted the wrong file

    Had two files the same titled and deleted somehow the wrong file - how can I restore it - tried everything

    Hello

    This forum is for comments on the forums for answers. This should arise in the answers-
    Forums for your version of Windows Windows.

    Answers - Windows Forums
    http://answers.Microsoft.com/en-us/Windows

    -------------------------------------------------------------------------------------------------------------

    Recuva - free - recovers files deleted from your Windows computer, Recycle Bin,
    map of the camera digital or MP3 player. And it's free!
    http://www.Piriform.com/Recuva

    Forums - help here
    http://Forum.Piriform.com/

    I hope this helps.

  • Must I first uninstall the old version and delete the program files to upgrade an earlier version of Windows Media Player?

    Original title: upgrading an earlier version of Windows Media Player

    If I want to move my old windows media player, must I first uninstall the old version and delete its program files?

    Hi CorinneWesley,

    1. what version of Windows Media Player do you use?

    2. what version of Windows Media Player that you want to install?

    Do not uninstall the current version of Windows Media Player. Download & install the version of Windows Media Player that is compatible with Windows XP.

    Hope the helps of information.

  • How do I scan a document, fill in the empty fields and print the completed document?

    original title: download and information documents.

    My writing becomes very poor due to age.  How do I scan a document, fill in the empty fields and print the completed document?  What other software do I need to do?

    Hi Stuuser,

    I suggest that you use any third party editing program or Microsoft word document to edit any document, and then follow the links below for more information about scanning and printing.

     

    Add or remove a scanner

    http://Windows.Microsoft.com/en-us/Windows-Vista/add-or-remove-a-scanner

    Scan a document or file

    http://Windows.Microsoft.com/en-us/Windows-Vista/scan-a-document-or-file

    Scanning: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/scanning-frequently-asked-questions

    Print a document or file

    http://Windows.Microsoft.com/en-us/Windows-Vista/print-a-document-or-file

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Re: Outlook Express, I've lost the Outbox, sent and Delete

    first of all, I am very poor with computers, and I use Outlook Express for my e-mail.  I lost the sent, Outbox and delete.  I need people, and although I know not easy to put back them, how can I do?  I don't know even how I made them disappear!     I went in the view and even aid tools and leader, but still I can't find out what it takes to put those back on top of my outlook express.  These elements fit under tools in the upper part.  All this makes sense?  I don't even know the right terminology so I hope someone can understand me.  Thank you.

    Here is the Vista forums.

    And Vista Windows Mail, not Outlook Express.

    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.outlookexpress.General&cat=en_us_67ae557e-CEEA-4691-9CF6-efbe673e7b70&lang=en&CR=us

    Discussions in microsoft.public.outlookexpress.general

    They will help you in the Outlook discussion group to express above.

    See you soon.

    Mick Murphy - Microsoft partner

  • How to display the hidden files and folders even if I've already enabled "Show hidden files, folders and drives" to "Advanced settings"?

    How to display the hidden files and folders even if I've already enabled "Show hidden files, folders and drives" to "Advanced settings"?

    After I enabled "Show hidden files, folders and drives" in 'Advanced settings', I can't yet see in the folder but I know there is a file in this program of WinRAR folder form as pictured below where I opened the case both at the same time.

    Hope you can help in this case...

    It would be possible that the file is marked as a system folder (which is just a check box in properties such as the hidden check box). So in your folder options, uncheck the "Hide protected operating system files" and see if it will be visible.

    Or another thing to try: remonter back a level, hold down SHIFT while you right-click the complete file and choose "Open command window here", then type DIR to see if the file is listed.

  • Align the text field and a button.

    Hi all

    I use Oracle APEX 5.0.1.

    I tried to create a search page that contain a text field and a button.

    But I can't align the text field and button, so they can have the same top position.

    Could someone please help me solve this problem?

    APEX-ARE-Search.jpg

    Thank you and best regards,

    Troy.

    Hello.

    Have you tried to add a css attribute to the button? like: style = "top: 4px;

    Concerning

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

  • Why the enter, ESC and delete the off key?

    Hi all

    Now that I have the update on my DataGrid and I can select a line using up and down arrows on the keyboard, then I want to confirm my line selection by pressing the Enter key.

    But, my interlocutor on the DataGrid control keydown does not see the entrance, escape and delete keys. Most of the other keys is seen. I can browse the list using up and down keys (and I can see my function in the keydown listener are called).

    It only happens when I check my IDE Flash application. In debug mode, these keys are taken into account.

    My DataGrid is not editable but selectable.

    Any idea?

    Thank you for all

    You are welocme.

    .

  • How can I add session variables for the subject field and the body of the e-mail Message?

    How can I add session variables for the subject field and the body of the e-mail Message? Tried several combinations, but do not seem to correct the syntax.

    This is the code I have. I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];
    $subject = '$firstname $lastname, your registration details ';
    $from = "from: [email protected]"; "
    $msg = "Dear $title $firstname $lastname\r\n\nThank for the registration for the design of your dream Home.\r\nWe have received this following details details of you-\r\n\nClient-\r\n\nOccupation: $occupation \r\nPhone No.: $phone \r\nE-mail: $email\r\n\nPresent $ location: \r\n location\r\n\nPresent address: \r\n$ address\r\n\n\nFollowing are specified by you - design requirements \r\n\nBasic Features\r\n\nNo." floors: $floors\r\nNo. of bedrooms: bedrooms\r\nNo of $. of bathrooms: $bathrooms\r\nFloor region: $sqft\r\n\nFurther Suggestions: $ Plan\r\n\nSplit one further\r\n\n\nType floor: $splitfloor\r\n-remarks: $splitfloorremarks\r\nOpen floor: $openfloor\r\n-remarks: $openfloorremarks\r\n\n\nList of the rooms to be Included\r\n\nFoyer: $foyer\r\n-remarks: $foyerremarks\r\nDrawing: $drawing\r\n-remarks: $ alive drawingremarks\r\nFormal: $formalliving\r\n-comments : $ alive formallivingremarks\r\nFamily: $familyliving\r\n-remarks: $familylivingremarks\r\nHome Office: $homeoffice\r\n-remarks: $homeofficeremarks\r\nDining: $dining\r\n-remarks: $diningremarks\r\nMaster room: $master\r\n-remarks: $masterremarks\r\nMaster bathroom: $masterbath\r\n-remarks: $masterbathremarks\r\nMaster Dressing: $masterdress\r\n-remarks: $masterdressremarks\r\nBedroom: $bed\r\n-remarks: $bedremarks\r\nBathroom: $bath\r\n-remarks: $bathremarks\r\nDress: $dress\r\n-comments : $dressremarks\r\nStudy: $study\r\n-remarks: $studyremarks\r\nLibrary: $library\r\n-remarks: $libraryremarks\r\nPowder room: $powder\r\n-remarks: $powderremarks\r\nPrayer room: $prayer\r\n-remarks: $prayerremarks\r\nKitchen: $kitchen\r\n-remarks: $kitchenremarks\r\nPantry: $pantry\r\n-remarks: $pantryremarks\r\nUtility/area of work: $utility\r\n-remarks: $utilityremarks\r\nBalcony: $balcony\r\n-remarks: $balconyremarks\r\nStore: $store\r\n-remarks: $storeremarks\r\nLaundry : $laundry\r\n-remarks: $laundryremarks\r\nVeranda: $veranda\r\n-remarks: $verandaremarks\r\nCar porch: $carporch\r\n-remarks: $carporchremarks\r\nGarage: $garage\r\n-remarks: Theater garageremarks\r\nHome $: $theater\r\n-remarks: room of $theaterremarks\r\nMaid: $maid\r\n-remarks: $maidremarks\r\n\nOther general remarks: $general\r\n\nPlease note that the fields have been left blank in your form will be considered undecided details and used in discretion.\r\nIf of the architect , it better to add more later, design requirements please feel free to reply to this email with the details. « ;
    $fla = mail ($to, $subject, $msg, $from);

    Thanks in advance!

    askintrades wrote:

    How can I add session variables for the subject field and the body of the e-mail Message?

    What you want to do? Given the nature of your question, it seems that you probably don't know what a session variable is used. The PHP manual describes the purpose of sessions here: http://docs.php.net/manual/en/intro.session.php.

    I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];

    Why do you need to change the form variables in session variables? They are already stored in session variables, or they come directly from the form?

    The $to part is not supported. When you pass $to to the mail() function, it should contain only an e-mail address, not a string that begins with "to:

Maybe you are looking for

  • HP LED mouse wheel to scroll - how to fix?

    I downloaded drivers but the PC still says I have the latest and best. Spent several days trying to solve this problem, but no luck. Help, please? Running W7 x 64

  • Error loading of Skype

    I have been using Skype for years on a Let's's Note running XP Pro. Around Christmas 2009, after running Windows Update, it stopped working. As I have not traveled much this year, no biggie. But now, I tried to reload the last Skype 4.2 and I get a f

  • HP support impossible of full error in startup

    (1) the product name and number: HP pavilion dm4-A6X71UAR #ABA Notebook PC,(2) operating system: Windows 7 64-bit.(3) "test drive" shows NO OUTPUT, not found in 'Boot device' failure (3F0). " Please what should I do to restore

  • Removal of password of blackBerry Smartphones

    How can I delete a password for my camera so that there is no password in the system at all.

  • Cannot find the webcam on my computer

    Original title: I want to install my webcam my computer has a webcam but isn't there can you help me please show me how to install my webcam