Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

_Bruce_Robertson
_Bruce_Robertson
Offline

Badges

Badges
38

Accepted Solutions

Accepted Solutions
372

Likes Received

Likes Received
274

Posts

Posts
1782

Discussions

Discussions
45

Questions

Questions
1737

Ideas

Ideas
0

Blog Posts

Blog Posts
1
Top badges earned by _Bruce_Robertson
Customize the badges you want to showcase on your profile
Re: Multiple Line Text Fields - Adobe LiveCycle 27-05-2009
Hi Jen,I see what you mean now, I think you will have to do this in code and your form will have to be changed from static to dynamic. So change the TextField presence back to visible and the Table1 to hidden, then in the prePrint event of the page add something like (in JavaScript)if (TextField112132244.isNull){ TextField112132244.presence="hidden" Table1.presence="visible";}else{ TextField112132244.presence="visible"; Table1.presence="hidden"} And then in the postPrint addTextField112132244.pr...

Views

913

Likes

0

Replies

0
Re: Multiple Line Text Fields - Adobe LiveCycle 23-05-2009
Hi Jen,If I understand correctly you should be able to do this with the presence option. If you moved your Table1 to page 1 and changed it's presence (in the object tab) to "Visible (Print Only)" and changed TextField112132244 to "Visible (Screen Only)" I think you will get what you want.

Views

906

Likes

0

Replies

0
Re: Javascript dropping trailing zero's on replace - Adobe LiveCycle 20-05-2009
It's not the replace method dropping the trailing zeroes but the datetime field.So you could change your line;TimeReceived.rawValue.replace(":", "");withTimeReceived.rawValue.replace(/^(\d\d)$/,"$100").replace(/:/,"")Which will remove any colons or if there are only two digits add the trailing "00" back on.Or you could use the formattedValue property which should be as displayed on the form

Views

1.1K

Likes

0

Replies

0
Re: How to add metadata to .xdp form - Adobe LiveCycle 14-05-2009
If you are willing to edit the XML Source view you could add some elements, e.g. false ..Then in the prePrint event you could test the value and hide the bits of the formif (HelpButton.desc.nodes.namedItem("printable") == "false")If you don't want to edit the xml you could also have a script object function to set the property and then call that in the initialise event of the fieldfunction setProperty(node, property, value){ var item = node.desc.nodes.namedItem(property); if (item == null) { /...

Views

907

Likes

0

Replies

0
Re: Printing color forms in black and white - Adobe LiveCycle 14-05-2009
There are prePrint and postPrint events you could use to change the color;prePrintthis.oldFillColor = this.ui.oneOfChild.border.fill.color.value;this.ui.oneOfChild.border.fill.color.value = "255,255,255";postPrintthis.fillColor = this.oldFillColor;this.oldFillColor = null;If you have color borders you would have to do a similar thing (changing them to gray);this.oldFillLinearColor = this.border.fill.resolveNode("#linear").color.value;this.border.fill.resolveNode("#linear").color.value = "196,196...

Views

1.1K

Like

1

Replies

0
Re: Livecycle Script Objects with custom Javascript objects - Adobe LiveCycle 14-05-2009
I've been frustrated by the same thing, there seems to be something very different about script objects and JavaScript in the form events. Like you can't set breakpoints in script objects.The work around I've used is to assign a variable in the event my constructor function and then create the object locally, so your script object would becomevar Class = function TestObject(){ this.property1 = "a property"; this.property2 = "b property";}Class.prototype.join = function(){return this.property1 + ...

Views

912

Likes

0

Replies

0
Re: Setting the XML tag value in Java script - Adobe LiveCycle 27-04-2009
Hi Srini,In JavaScript you don't get any default properties so you need to say;xfa.record.prospectApplication.typeName.value = "namedInsured";That is assign the value to the "value" property not the dataValue object.

Views

825

Likes

0

Replies

0
Re: Can a form variable hold a javascript complex object? - Adobe LiveCycle 23-04-2009
Hi Elaine,The variable tempRetCust seems to be assigned twice, the first one assigns it some XFA object (with a value property) the second one assigned it to a string (without a value property). So I think eval(tempRetCust) will work, eval(tempRetCust.value) would be the same as eval(undefined).Bruce

Views

823

Likes

0

Replies

0
Re: Can a form variable hold a javascript complex object? - Adobe LiveCycle 22-04-2009
Hi Elaine,I've tried something like this before but a form variable can only hold a string value. However you could acheive what I think you want using the toSource() method and eval function.var co1 = { name : "customer name", address : "customer address", city : "customer city", state : "customer state", accounts : [1,2,3] };CustomerObject.value = co1.toSource();var co2 = eval(CustomerObject.value)console.println(co2.name);console.println(co2.address);console.println(co2.city);console.println(...

Views

828

Like

1

Replies

0
Re: Replace a character in the string using JavaScript - Adobe LiveCycle 20-04-2009
llyaYou could also use the global match attribute of the RegExp ... that is the "g" placed after the RegExp.replace(/ü/g,"ue")

Views

4.0K

Like

1

Replies

0
Likes given to