I am no expert, but have done some hiding.
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
On Wed, Feb 24, 2010 at 10:39 PM, Worst, Debbie <dwo...@gaic.com> wrote:
Thanks,
Robert.
Sent from my iPhone
I have general information like,name, address, city, state that needs to show on the initial opening of the form and never hides. It is only when you select from the dropdown that below these fields the information should show or hide.
In your example you have everything in the same subform and that subform is flowed which I understand but I can't have all my fields, lining up on the left.
If you wouldn't mind, could you take a look at my form. Thanks,
-----Original Message-----
From: live...@googlegroups.com [mailto:live...@googlegroups.com] On Behalf Of renjith vijayan
Sent: Wednesday, February 24, 2010 1:11 PM
To: live...@googlegroups.com
Subject: Re: Form example with hidden fields based upon selection
please find the sample attached.
On Wed, Feb 24, 2010 at 10:39 PM, Worst, Debbie <dwo...@gaic.com> wrote:
> Yes and it hides dependent on what I select from the dropdown but there is "white space" where the subform used to be when you select an option that is in subform #2 or 3. What I want to do is you select 1 from the dropdown and subform 1 appears but if you choose 2 subform 2 appears and there is not white space where subform 1 was.
>
> -----Original Message-----
> From: live...@googlegroups.com [mailto:live...@googlegroups.com]
> On Behalf Of GL
> Sent: Wednesday, February 24, 2010 11:57 AM
> To: Adobe LiveCycle Developers
> Subject: Re: Form example with hidden fields based upon selection
>
> Do you have the table grouped as a subform? And, have the subform "hidden-exclude from layout'?
>
> I am no expert, but have done some hiding.
>
> On Feb 24, 6:33 am, "Worst, Debbie" <dwo...@GAIC.COM> wrote:
>> Good morning!
>>
>> Does anyone have an example of how to set up a livecycle form where when you select a specific value from a dropdown, additional fields are exposed?
>>
>> I'm developing a form where you choose a value from a dropdown. Upon the selection, a table with specific fields pertaining to your selection from the dropdown appear. The problem I'm having is that there is white space where the table is when it is "hidden".
>>
>> Any help would be greatly appreciated...
>>
>> *********************************************************************
>> * The content of this e-mail message and any attachments are
I do have the form now set up where it is not showing any white space.
I was now attempting to see how to write the following code in a "Switch Case" format. I have 6 options and was told that an else if statement would not be the best choice. Could anyone help me out with how to write this code in the Swtich Case format? Thanks in advance....
if (this.resolveNode("UC4Forms").rawValue == "New User Form")
{
this.resolveNode("SubFormNewUser").presence = "visible";
this.resolveNode("SubFormJobNumber").presence = "Hidden";
this.resolveNode("SubFormJobHold").presence = Hidden;
} else {
if (this.resolveNode("UC4Forms").rawValue == "Job Hold")
{
this.resolveNode("SubFormNewUser").presence = "hidden";
this.resolveNode("SubFormJobNumber").presence = "visible";
this.resolveNode("SubFormJobHold").presence = "visible";
} else {
if (this.resolveNode("UC4Forms").rawValue == "Run Request")
{
this.resolveNode("SubFormNewUser").presence = "hidden";
this.resolveNode("SubFormJobNumber").presence = "visible";
this.resolveNode("SubFormJobHold").presence = "visible";
} else {
if (this.resolveNode("UC4Forms").rawValue == "Job Hold")
{
this.resolveNode("SubFormNewUser").presence = "hidden";
this.resolveNode("SubFormJobNumber").presence = "visible";
this.resolveNode("SubFormJobHold").presence = "visible";
} else {
-----Original Message-----
From: live...@googlegroups.com [mailto:live...@googlegroups.com] On Behalf Of renjith vijayan
Sent: Wednesday, February 24, 2010 1:11 PM
To: live...@googlegroups.com
Subject: Re: Form example with hidden fields based upon selection
please find the sample attached.
On Wed, Feb 24, 2010 at 10:39 PM, Worst, Debbie <dwo...@gaic.com> wrote:
> Yes and it hides dependent on what I select from the dropdown but there is "white space" where the subform used to be when you select an option that is in subform #2 or 3. What I want to do is you select 1 from the dropdown and subform 1 appears but if you choose 2 subform 2 appears and there is not white space where subform 1 was.
>
> -----Original Message-----
> From: live...@googlegroups.com [mailto:live...@googlegroups.com]
> On Behalf Of GL
> Sent: Wednesday, February 24, 2010 11:57 AM
> To: Adobe LiveCycle Developers
> Subject: Re: Form example with hidden fields based upon selection
>
> Do you have the table grouped as a subform? And, have the subform "hidden-exclude from layout'?
>
> I am no expert, but have done some hiding.
>
> On Feb 24, 6:33 am, "Worst, Debbie" <dwo...@GAIC.COM> wrote:
>> Good morning!
>>
>> Does anyone have an example of how to set up a livecycle form where when you select a specific value from a dropdown, additional fields are exposed?
>>
>> I'm developing a form where you choose a value from a dropdown. Upon the selection, a table with specific fields pertaining to your selection from the dropdown appear. The problem I'm having is that there is white space where the table is when it is "hidden".
>>
>> Any help would be greatly appreciated...
>>
>> *********************************************************************
>> * The content of this e-mail message and any attachments are
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
<AddImage.pdf>
Duane,
Thanks a lot. I did see that functionality and think that would be our ultimate solution. However, I was hoping there was a way to directly paste the image without having to save it as a file.
Thanks,
Robert.
Sent from my iPhone
On Feb 25, 2010, at 9:20 AM, Duane Nickull <dnic...@adobe.com> wrote:
Add an image field. See the attached document to see if it has the required functionality.
Duane
On 2/24/10 11:10 AM, "Robert Phelan" <robp...@gmail.com <mailto:robp...@gmail.com> > wrote:
Is there any way to allow a user to copy an image, let's say a
screenshot, and paste it onto a form UI element?
Thanks,
Robert.
Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com <mailto:live...@googlegroups.com> .
To unsubscribe from this group, send email to livecycle+...@googlegroups.com <mailto:livecycle+...@googlegroups.com> .
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en <http://groups.google.com/group/livecycle?hl=en> .
---
Adobe LiveCycle Enterprise Architecture - http://www.adobe.com/products/livecycle/ <http://www.adobe.com/products/livecycle/>
My TV Show - http://tv.adobe.com/show/duanes-world/ <http://tv.adobe.com/show/duanes-world/>
My Blog – http://technoracle.blogspot.com/ <http://technoracle.blogspot.com/>
My Band – http://22ndcenturyofficial.com/ <http://22ndcenturyofficial.com/>
Twitter – http://twitter.com/duanechaos <http://twitter.com/duanechaos>
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
<AddImage.pdf>
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
<AddImage.pdf>
switch (expression){
case value1:
statement;
break;
case value2:
statement;
break;
"
"
default : statement;
Thanks for you help....I really want to learn how to do this but I'm spending a lot of time just "spinning my wheels", so to speak.
if (this.resolveNode("UC4Forms").rawValue == "New User Form")
{
this.resolveNode("SubFormNewUser").presence = "visible";
this.resolveNode("SubFormJobNumber").presence = "Hidden";
this.resolveNode("SubFormJobHold").presence = Hidden;
this.resolveNode("SubFormRunRequest").presence = Hidden;
this.resolveNode("SubFormJobCancel").presence = Hidden;
this.resolveNode("SubFormJobRelease").presence = Hidden;
} else {
if (this.resolveNode("UC4Forms").rawValue == "Job Hold")
{
this.resolveNode("SubFormNewUser").presence = "hidden";
this.resolveNode("SubFormJobNumber").presence = "visible";
this.resolveNode("SubFormJobHold").presence = "visible";
this.resolveNode("SubFormRunRequest").presence = Hidden;
this.resolveNode("SubFormJobCancel").presence = Hidden;
this.resolveNode("SubFormJobRelease").presence = Hidden;
} else {
this.resolveNode("SubFormNewUser").presence = "hidden";
this.resolveNode("SubFormJobNumber").presence = "hidden";
this.resolveNode("SubFormJobHold").presence = "hidden";
this.resolveNode("SubFormRunRequest").presence = Hidden;
this.resolveNode("SubFormJobCancel").presence = Hidden;
this.resolveNode("SubFormJobRelease").presence = Hidden;
You've got too many "this.resolveNode" going on in your code. "this"
refers to the current object.
An easy way to get the path to another object in Designer while
scripting is: with your cursor positioned in the script where you want
to reference another object, hold down the Ctrl key and mouse over the
field/subform that you want to reference - the mouse cursor will turn
into a "V" when you are over a valid object, then click and the
reference will be placed in your script.
I did that with the statements in your pdf and none of the
resolveNodes were needed.
Also, watch your spelling and punctuation - JavaScript is case-
sensitive, you had "hidden" spelled "Hidden" in one or two places
which won't work and you were missing some quotation marks.
this.rawValue = xfa.event.newText;
switch (this.rawValue) {
case "New User Form":
NewUserSubForm.presence = "visible";
JobNumberSubForm.presence = "hidden";
JobNumberSubForm.presence = "hidden";
break;
case "Job Hold":
NewUserSubForm.presence = "hidden";
JobNumberSubForm.presence = "visible";
JobHoldSubForm.presence = "visible";
break;
I took your code and put it behind my dropdown named UC4Forms and tried to test it but nothing happened. I put it on the change event and I have it as JavaScript not Form Calc. What am I missing?
-----Original Message-----
From: live...@googlegroups.com [mailto:live...@googlegroups.com] On Behalf Of Jono Moore
Sent: Thursday, February 25, 2010 12:27 PM
To: Adobe LiveCycle Developers
Subject: Re: Form example with hidden fields based upon selection
--
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
> For more options, visit this group athttp://groups.google.com/group/livecycle?hl=en.
I can try, though I'm still somewhat a neophyte when it comes to
JavaScript. :)
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
Under Form Properties also make sure that under the Preview tab
Preview Type is set to Interactive Form.
I'll attach my form. I'd really appreciate another set of eyes. It's probably something really stupid on my part.
Really appreciate your patience.
> > ** The content of this e-mail message and any attachments are
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
D
********
22nd Century (my band) - http://22ndcenturyofficial.com/
Twitter - @duanechaos
Blog - http://technoracle.blogspot.com
********
>> The content of this e-mail message and any attachments are
>> confidential and may be legally privileged, intended solely for the
>> addressee. If you are not the intended recipient, be advised that any
>> use, dissemination, distribution, or copying of this e-mail is
>> strictly prohibited. If you receive this message in error, please
>> notify the sender immediately by reply email and destroy the message
>> and its attachments.
>> **********************************************************************
>
> --
> You received this message because you are subscribed to the Google
> Groups "Adobe LiveCycle Developers" group.
> To post to this group, send email to live...@googlegroups.com.
> To unsubscribe from this group, send email to livecycle+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/livecycle?hl=en
> .
>
>
>
>
> ********************************************************************** The
> content of this e-mail message and any attachments are confidential
> and may be legally privileged, intended solely for the addressee. If
> you are not the intended recipient, be advised that any use,
> dissemination, distribution, or copying of this e-mail is strictly
> prohibited. If you receive this message in error, please notify the
> sender immediately by reply email and destroy the message and its
> attachments.
> **********************************************************************
>
> --
> You received this message because you are subscribed to the Google
> Groups "Adobe LiveCycle Developers" group.
> To post to this group, send email to live...@googlegroups.com.
> To unsubscribe from this group, send email to livecycle+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/livecycle?hl=en
> .
>
> <workingflowedsubformsUC4.pdf>
I looked at the code and the problem is that the incorrect subforms are referenced.
this.rawValue = xfa.event.newText;
switch (this.rawValue) {
case "New User Form":
SubFormNewUser.presence = "visible";
SubFormJobNumber.presence = "hidden";
//JobNumberSubForm.presence = "hidden";//I am not sure which Subform this is
break;
case "Job Hold":
SubFormNewUser.presence = "hidden";
SubFormJobNumber.presence = "visible";
//JobHoldSubForm.presence = "visible";//I am not sure which Subform this is
break;
}
If you cut and paste this into the UC4Forms change event you will get the subforms to appear. Hopefully that will give you the keys to making the other code adjustments.
I would also like to state that as a 6 year user of Designer I really do not care for Tables. If I were designing this form I would have everything inside a Positioned Subform then wrap it in a Flowed Subform. When it is all said and done you get fewer objects in your Hierarchy to deal with.
Rick Kuhlmann
Sr. Adobe LiveCycle Developer
Tech-Pro, Inc.
www.tech-pro.com
Really appreciate your patience.
________________________________
This electronic mail (including any attachments) may contain information that
is privileged, confidential, and/or otherwise protected from disclosure to
anyone other than its intended recipient(s). Any dissemination or use of this
electronic email or its contents (including any attachments) by persons other
than the intended recipient(s) is strictly prohibited. If you have received
this message in error, please notify us immediately by reply email so that we
may correct our internal records. Please then delete the original message
(including any attachments) in its entirety. Thank you.
You need to make sure the references match.
this.rawValue = xfa.event.newText;
switch (this.rawValue) {
case "New User Form":
SubFormNewUser.presence = "visible";
SubFormJobNumber.presence = "hidden";
// JobNumberSubForm.presence = "hidden"; // in twice?
break;
case "Job Hold":
SubFormNewUser.presence = "hidden";
SubFormJobNumber.presence = "visible";
SubFormJobHold.presence = "visible";
break;
}
> workingflowedsubformsUC4.pdf
> 264KViewDownload
Hopefully I'll get better at this and will be able to help out also!
> workingflowedsubformsUC4.pdf
> 264KViewDownload
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
********************************************************************** The content of this e-mail message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the intended recipient, be advised that any use, dissemination, distribution, or copying of this e-mail is strictly prohibited. If you receive this message in error, please notify the sender immediately by reply email and destroy the message and its attachments. **********************************************************************
Beat me to it!
> I would also like to state that as a 6 year user of Designer I really do not care for Tables. If I were designing this form I would have everything inside a Positioned Subform then wrap it in a Flowed Subform. When it is all said and done you get fewer objects in your Hierarchy to deal with.
I'm with you there, tables can be a real pain.