Expand my Community achievements bar.

SOLVED

Error? - this.rawValue is null

Avatar

Level 4

I have a form that I want users to be able to digitally initial and date, and when they save it, I want the filled-in fields (their initial and date) locked down so that the next person who opens it cannot remove or change anyone else's initials or date.

I have the following JS in the postSave event for each field:

if (!(this.rawValue.isNull))
    {this.access = "readOnly";}
    else
    {this.access = "Open";}

The form seems to work properly on the user end, but I keep getting a "this.rawValue is null" error in the JavaScript Debugger whenever I save the form from Adobe Pro. Obviously there ARE going to be null values until all of the fields have been filled, but why does the debugger have to tell me this each time?

Jo

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Drop the .rawValue. eg this.isNull.

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

Drop the .rawValue. eg this.isNull.

Niall

Avatar

Level 4

Perfect!!! Thank you Niall!

Jo