Expand my Community achievements bar.

SOLVED

Hidden subform not displaying

Avatar

Level 7

I've created a DDL where if one of the values is chosen, I want a hidden subform to be visible.

I put the following script on the change event of the DDL, but it's not working. I've make the subforms flowed and the form is dynamic.

I've gotten script like this to work before, but I don't know what I've done wrong on this one.

 

if

(this.rawValue == '4')

 

{

awaReq.positioned4.presence = "visible";

}

 

else      

{

awaReq.positioned4.presence

= "hidden";

}

Thanks,

MDAwn

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

The rawValue property of the object is not set until you leave the object...so either move your code to the exit event, or change the this.rawValue to xfa.event.newText to get the value of the selection that the user made and leave the code on the change event.

Paul

View solution in original post

1 Reply

Avatar

Correct answer by
Former Community Member

The rawValue property of the object is not set until you leave the object...so either move your code to the exit event, or change the this.rawValue to xfa.event.newText to get the value of the selection that the user made and leave the code on the change event.

Paul

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] ----