i want to show my user while they were start typing on text it must contation two numbers before(automatically)
You can do that by using text changed block or also you can join whatever you want to the text box text by using join text block.
can share the block image
if I did’t misunderstand the question “what you want to do is show two numbers in the text box before the user enters text” to do that you can use this component to show text at the beginning of the text box
it not working
i want the +91 as comings before the number
but now it come like this
i cant able to write
if you use on text change you enter in loop !!!
This is exactly what you want. If country code is fixed then just show it in a label and Add country code from block.
When user go to next then just use join block with +91 and text box text.
You can use lost Focus to join +91 and number , it will add +91 when the text box have lost the focus you can also use if else to ensure that number text box is not empty
Or can you try default Text box.text to what you want in designer side.
Something like this (do watch 1st TextBox)
can be achieved with this
Explaination of the video and code as well
When the first text box gets focus, it will automatically add
+91, and then user can continue typing the further number.
If by any chance user deletes the entire number, and enter a new number without adding
+91, then the same will be automatically added by the program. Also note that if user himself/herself, adds
+91while typing the number, then the program will not add
+91on its own
Hope this helps
got it thanks you
Its a simple procedure block that can be dragged in block section from Procedures --> the first block. And then I just renamed it to
Edit: Its look like you edited the part in your above reply where you asked about the procedure block.
I think this is the most simple, straightforward and best way to achieve your query
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.