Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Designer ES2 crashes for the javascript

Avatar

Level 4

I would like to add line break following code terminate the LiveCycle ES2 SP1 Designer, please help Thanks YogLC F.P1.RequiredLanguage::initialize - (JavaScript, both) if (this.resolveNode("$").rawValue != "null" || this.resolveNode("$").rawValue != "''") {   this.resolveNode("$").rawValue =  this.resolveNode("$").rawValue +"\n\n"; }

3 Replies

Avatar

Level 10

What do you mean by this.resolveNode("$") ??

Do you have a field named $ in your form?

Nith

Avatar

Former Community Member

Try this instead:

if (this.rawValue) this.rawValue += "\n\n";

Avatar

Level 4

Nith the Action Builder tool in Designer had build the code for example to to make readonly button see below.

form1.#subform[0].Button1::click - (JavaScript, client)
//+ GENERATED - DO NOT EDIT (ID:888C192F-38EE-4278-8FF5-CD3B59F508C0 CRC:3889380029)
//+ Type: Action
//+ Result1: SetEnabled("$Node2","readOnly")
//+ Node2: form1[0].#subform[0].Button2[0]
//+ Node1: form1[0].#subform[0].Button1[0]
//+ Condition1: Button("$Node1","click")
//+ ActionName: Button1.click
oTargetField = this.resolveNode("Button2");
oTargetField.access = "readOnly";
//-