Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Script for Textfield comb of 8

Avatar

Level 7

I have a text field comb of 8 characters.

Is it possible when the form opens automatically have an M as the first character of the comb?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

There is a type dialog above the default value ...what is that set to? Are you trying this in preview? If so check the File/Form Properties/Preview

and make sure the Preview Type drop down is set to Interactive and not Print Form.

Paul

View solution in original post

3 Replies

Avatar

Former Community Member

Yes ...just set the default value in the Value tab to M

Paul

Avatar

Level 7

Hi Paul, when I set the default value in the Value tab to M, does not allow me to fill the rest field!

Thanks

Avatar

Correct answer by
Former Community Member

There is a type dialog above the default value ...what is that set to? Are you trying this in preview? If so check the File/Form Properties/Preview

and make sure the Preview Type drop down is set to Interactive and not Print Form.

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