Hello!
I'm working on an automation program that would output certain keypress depending on a number added in a text field.
Ex : if a user types "3" in the text field, the keypress should be key:3, if the user types "12" the keypresses should be key:1 key:2
Etc.
That's because the medical app we use cannot work with numbers in s text field, if I want to add refills for a prescription for example.
Hi @sbourque4, this is a great idea!
You may want to consider parsing through a string input with some of Text Blaze's string functions. I think contains or search may be useful here. You might also want to consider using a code block, as its for function can loop through a string.
Good luck with your work!
@sbourque4
Adding to Ashu, you can try this example.
{formtext: name=keys; default=234}{repeat: for key in split(keys, "")}{key: {=key}}{endrepeat}