Inputing numeric value in numeric field

I have a website where to enter the otp to access the application. I need to enter the otp in the input field which only permits numeric values strictly.
I have my otp extracted as a variable. How to enter the numeric 6 digit value in the input field. I cant find any activity to acheive this because i have seen activities which only accepts text. please help on this

Using a while loop, try using num keys in the ‘Send hotkey’ activity to insert the otp numbers.

@Chillale_Amrutha Create a variable that stores your 6-digit numeric OTP. Use “Type Into” activity and use yourVariable.ToString in its Text field use “DelayBetweenKeys” property to make sure all numbers are entered properly or you can use “For Each” Activity + “Type Into” Activity to type each digit of OTP.

@Chillale_Amrutha

Lets call the extracted number digits as otpVariable

  1. Extract your OTP as an string variable
  2. Use a “Type Into” activity to enter the OTP into the input field. In the “Text” field, enter Cint(otpVariable).
  3. Set the “Simulate Type” or “SendWindowMessages” property to “True” based on your application’s requirements.
  4. Optionally, use a “Set Text” activity to set the “Text” property of the input field to ensure only 6 digits are entered.

Hi
Try the below steps

Type Into: Use the “Type Into” activity to enter the OTP variable into the input field. However, as you mentioned, the “Type Into” activity typically handles text, and it might not restrict the input to numeric values only.

To ensure that only numeric values are entered, you can use the “Simulate Type” or “SendWindowMessages” input methods of the “Type Into” activity. These methods can directly input the numeric value as if a user is typing it, and it should restrict input to only numeric characters.

There is no such thing as entering a numeric value. It’s just entering a string that has only digits in it. Use Type Into. If your variable is a numeric (int32 or double) then use yourVar.ToString as the value to enter. If you need to very that the value is numeric then use IsNumeric(yourStringVar).