typebot.io icon indicating copy to clipboard operation
typebot.io copied to clipboard

Readonly prefix/suffix in Input components

Open erickriva opened this issue 2 years ago • 6 comments

Use case: I'm asking for user's linkedin.com URL using a website block. I would like to ask only for linkedin username, but with a visual indication of that. https://linkedin.com/in/ would be the readonly prefix visible to the user, that would be added to the final value when setting on a variable.

I know it can be done through Set Variable block, asking only for 'username', but there is no 'visual indication' nowadays.

Not much important, but just a hint.

erickriva avatar Jan 12 '23 16:01 erickriva

That can be nice!

Visually, it could look a bit like that: https://chakra-ui.com/docs/components/input/usage#left-and-right-addons

baptisteArno avatar Jan 13 '23 07:01 baptisteArno

@baptisteArno Are you seeing it as a new component or as options to the current Input Text ?

Jorgelig avatar Jan 14 '23 06:01 Jorgelig

New options on the existing text input block

baptisteArno avatar Jan 14 '23 15:01 baptisteArno

Prefix/Suffix will have an option to append/prepend value (so it can be visual-only or added to final value)?

Do you think it can be used in both ways?

Unrelated: I think it needs to accept variables (having a button to add them, like most blocks)

erickriva avatar Jan 16 '23 00:01 erickriva

I think it should always be added to final value! I can't think of a use case where you don't want it to be added?

baptisteArno avatar Jan 16 '23 07:01 baptisteArno

Just dropping ideas to discuss. Can't think of an use-case right now.

erickriva avatar Jan 16 '23 14:01 erickriva

Issue stalled

baptisteArno avatar Apr 07 '24 08:04 baptisteArno