Expand my Community achievements bar.

SOLVED

rawValue returning null

Avatar

Level 3

I have used FieldName.rawValue many times in the past in JavaScript on my forms with no problems. But for some reason, it is now returning NULL in some new code I'm writing. I have some code in a field's "full" event where I'm trying to access the field's raw value:

this.xfa.form.Ultra_Form.Page2.Assistance_Phone.rawValue

...but whenever I do anything with this property, I get NULL. I've tried it on some other fields' "full" events, but get the same result. Any ideas?

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

I do not think the rawValue will be populated until you exit the field. The ful levent might be too early ...try the xfa.event.newText instead of the fieldName.rawValue to get what the user typed. I cannot validate this as I am not at a computer that has designer at the moment....so it is a guess.

Paul

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

I do not think the rawValue will be populated until you exit the field. The ful levent might be too early ...try the xfa.event.newText instead of the fieldName.rawValue to get what the user typed. I cannot validate this as I am not at a computer that has designer at the moment....so it is a guess.

Paul

Avatar

Level 3

Looks like that is going to work. Thanks so much!

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----