Expand my Community achievements bar.

SOLVED

Changing object from Hidden to Visible

Avatar

Level 1

Hi guys,

Currently struggling to get items that I have marked as hidden (exclude from layout) to become visible. At this point I am trying to get different objects to become visible depending upon which radio box they select. I have tried adding the Javascript for one of the radio boxes as follows:

if (form.main.status1.sessionwaitlisted.rawValue == 2)

  {

form.main.email.presence = "visible";

}

This has continuously failed... And since then I have download the most recent version of LC, where I can select to add an action as per screen shot..

766914_pastedImage_1.png

However, I am still unable to get the action to work when I am in preview mode. I achieve nothing..

766915_pastedImage_3.png

Any help would be greatly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Hi melo,

Since i coudn't see the "email" field on the form, i couldn't say whether there is any issue with the script that you have used.

But, please try using the following script instead:

xfa.resolveNode("form.main.........email").presence = "visible";

Also, make sure that you are not hiding the subform that has email object in it.

Thanks,

Kumar

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

Hi melo,

Since i coudn't see the "email" field on the form, i couldn't say whether there is any issue with the script that you have used.

But, please try using the following script instead:

xfa.resolveNode("form.main.........email").presence = "visible";

Also, make sure that you are not hiding the subform that has email object in it.

Thanks,

Kumar

Avatar

Level 2

Also, make sure you're saving and/or previewing the form as a "Dynamic" form not Static.

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