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

update field

RiccardoMancini
Level 1
Level 1

I have a field name with global bindings, I'd like a second field name (called name2) has default value that fits in real time in the principal name, as if it were also in the global binding, but if I change the value of the field name2 must not change the value of field name1, with which script can I accomplish this?
thanks

Riccardo

5 Replies
RiccardoMancini
Level 1
Level 1

I tried to do so but does not work:

---formccr.Page5.name2::initialize: - (JavaScript, client)----

this.rawValue = formccr.Page1.name1.value;
_Bruce_Robertson
Level 10
Level 10

Hi,

Try moving your script to the calculate event of the name1 field.

Regards

Bruce

RiccardoMancini
Level 1
Level 1

Thanks for the reply
I tried to move the event calculate, but I name2 this error: Object120292716

_Bruce_Robertson
Level 10
Level 10

try

this.rawValue = formccr.Page1.name1.rawValue;


that is use rawValue of name1 not value.


Regards


Bruce

RiccardoMancini
Level 1
Level 1

Thanks to operate properly!
And should I use that function if a required field is left blank, with an alert window?