Expand my Community achievements bar.

SOLVED

Check Box - Java Script problem

Avatar

Level 2

Here is the code I am using:

if(TableA.A.rawValue !=1)

{

    this.presence = "hidden";

}

else if(TableA.A.rawValue == 1)

{

    this.presence = "visible";

}

When the user checks the box the comments textbox is visible (else, it isn't visible).

The problem is that when the textbox is visible, the user is unable to enter any text. What am I missing?

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

There was a readOnly access on the subform  that holds the TextField.

I remember there being an issue over a year ago where under a specific set of circumstances that could happen to you. Note that there is no UI in designer to remove that so I had to do it in the XML source. Here is the updated sample.

Paul

View solution in original post

4 Replies

Avatar

Former Community Member

Did you make the field readOnly? Did you make the field a fillable field?

Paul

Avatar

Level 2

Hi Paul,

Thanks for responding.

Field: Text Field
Value: User Entered - Optional

Could you please take a look at the attached example?

Avatar

Correct answer by
Former Community Member

There was a readOnly access on the subform  that holds the TextField.

I remember there being an issue over a year ago where under a specific set of circumstances that could happen to you. Note that there is no UI in designer to remove that so I had to do it in the XML source. Here is the updated sample.

Paul

Avatar

Level 2

Fantastic! It works.

I compared the XML source and so your deletion.

Thank you very much.

Yaniv

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