Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Text boxes with fixed answers

Avatar

Level 1

Hello everybody

I've got just one little question, so I decided to post this new threat. My question is: is it possible to create a text box which only accepts one answer? For example a text box to use for a registration number or password so there is only one good answer. I hope anyone can help me. If this is possible, could you tell me how I can do that?

Thank you for reading, and I hope for someone to response. And sorry if my English is not so good, I'm not from England.

~Wumb0

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

You can use an app.response command to ask you r question and give a single field to allow the user to enter the answer. You can then validate what they enter and react accordingly.

Paul

View solution in original post

3 Replies

Avatar

Level 10

What does this mean? A single word without any space?

If so, you can use Regular Expression to validate the answer field.

Nith

Avatar

Correct answer by
Former Community Member

You can use an app.response command to ask you r question and give a single field to allow the user to enter the answer. You can then validate what they enter and react accordingly.

Paul

Avatar

Level 1

Thanks! This is what I was looking for!

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