Questions tagged [inputbox]

The tag specifies an input field where the user can enter data. elements are used within a

element to declare input controls that allow users to input data. An input field can vary in many ways, depending on the type attribute.

The most important form element is the element.

The element is used to select user information.

An element can vary in many ways, depending on the type attribute. An element can be of type text field, checkbox, password, radio button, submit button, and more.

<input type="text"> defines a one-line input field that a user can enter text into.

<input type="password"> defines a password field.

<input type="radio"> defines a radio button: Radio buttons let a user select ONLY ONE of a limited number of choices.

<input type="checkbox"> defines a checkbox: Checkboxes let a user select ZERO or MORE options of a limited number of choices.

<input type="submit"> defines a submit button.

These are types of input box, for more details of its attributes and properties please refer w3c

475 questions
3
votes
3 answers

Only accept number from 1 to 9 Using JavaScript

Would like to know how to only accept number to be entered into inputbox from 1 to 9 and if entered for example 0 give alert message, sorry not a valid number. please check my function that i have done so far, but not working.. thank you
user754443
  • 47
  • 1
  • 7
3
votes
2 answers

VBA: inputbox and cancel button

varInput = Application.InputBox("Text", "Title", Type:=2) If varInput = "False" Then Exit Sub End If If the cancel button is pressed, the return value is a string with "False". But on some computer with german setting I will get "Falsch" ! How…
Meloun
  • 13,601
  • 17
  • 64
  • 93
3
votes
0 answers

How can I create a popup input dialogue box with multiple inputs in R?

I'd like to generate a popup box in R with six inputs. I prefer to have all the inputs in the same pop-up box because most of the time most will be the default, and I'd like to quickly see at a glance that they are all correct rather than having to…
3
votes
2 answers

Extract a worksheet name from the range selected

I have to input the result in the selected cell through InputBox function: Set OutputStrt = Application.InputBox("Select a cell, where the output should be dropped.", "Output start cell", Type:=8) When I ran the code in the different worksheet and…
Sam
  • 65
  • 1
  • 1
  • 8
3
votes
1 answer

Can't Cancel Application.Inputbox Properly

So this code works until you decide to hit Cancel or close the inputbox window with the X at which point it gives you: Run-time error '424': Object required and then it highlights this part of the code in debug: Set ranC =…
3
votes
1 answer

Can vbs create bat file with line from InputBox?

can someone help me? This vbs script create a run.bat but I need in run.bat second line Answer from InputBox on start of vbs script. It is possible? Answer = LCase(InputBox("Your Answer:", "")) If Len(Answer) Then Dim objFSO, outFile …
3
votes
3 answers

Add text inside an inputbox using CSS

I cannot edit the html code, is the question below possible using only "CSS" code? How do you add a text just like a placeholder or something to an inputbox? Here's the input text box code:
zen
  • 383
  • 3
  • 10
  • 21
3
votes
1 answer

Get hwnd of Excel InputBox Method

I think I have a fairly simple question. I'm looking for a method to get the hwnd for an excel input box. I'm automating a process and I'm noticing that a type 8 input box is consistently underneath the excel window (I'm automating excel from…
MattB
  • 2,203
  • 5
  • 26
  • 48
3
votes
3 answers

What button pressed inputbox C#

I am using the input box from visual basic in c# and I couldn't figure out how I know what button has been pressed. The input box return the string that has been written. How I know if the cancel button has been clicked or the OK button? Thank you…
MyNick
  • 536
  • 1
  • 9
  • 25
3
votes
2 answers

Is it possible to change inputbox icon in vb.net?

I have an inputbox which is called from code, yet while I have icons for all my forms, I don't get an icon on this inputbox. Since it's a standard option for messageboxes, I think it's weird there isn't a standard option for it concerning…
Yorrick
  • 377
  • 2
  • 8
  • 28
3
votes
2 answers

Excel unresponsive when InputBox open, c#

I'm building an excel add in using c#, and i want the user to select a range. I have the inputbox set up and it's receiving the range fine when entered as a text. The problem is that excel is unresponsive when the inputbox is open, the user can't go…
Peter Green
  • 99
  • 1
  • 7
3
votes
3 answers

Application.Inputbox [LEFT] and [TOP] not working in Excel Vba. Why?

I have a simple inputbox in my VBA code. I would like to set its starting position. I know the parameters [LEFT] and [TOP] should do that, but they won't work. Here is what I have: x = Application.InputBox(MyPrompt, MyTitle, , 50, 50) and here is…
Alaa Elwany
  • 677
  • 7
  • 15
  • 20
2
votes
2 answers

JQuery simulate enter on input field

I've got a form, where i put information in with greasemonkey. The form got no ID or Class... When you manauly put something in the inputbox, and press enter, it get's submitted and you're off... I want to achief the same with jquery. Changing the…
Mathlight
  • 6,436
  • 17
  • 62
  • 107
2
votes
1 answer

number baseball game in javascript

I was making the number baseball game with javascript. I got the random 3 numbers in my console based on the code I wrote. And I want to use the function play for comparing the randomIndexArray which shown by computer randomly and the user input…
camilla
  • 21
  • 1
2
votes
2 answers

Find from InputBox, copy row of found cell without using .Select

I have a spreadsheet with over 10000 rows. I need to search it using InputBox (UPC field, input is from a barcode scanner). I need to copy the row of the found cell, and paste it to another sheet. This process should loop until the user cancels the…
Medwards
  • 21
  • 1
1 2
3
31 32