Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

update field

Avatar

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

Avatar

Level 1

I tried to do so but does not work:

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

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

Avatar

Level 10

Hi,

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

Regards

Bruce

Avatar

Level 1

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

Avatar

Level 10

try

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


that is use rawValue of name1 not value.


Regards


Bruce

Avatar

Level 1

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