I have a doubt, Please let me know how to proceed. Below the image, you can see there have two fields called selling price and buying price, I want to input there only decimal value for those mentioned fields please advise me to how to do that
enter image description here
Thank You
The solution isn't angular related.
Here's an older thread that shows the multiple ways you could accomplish this:
Is there a float input type in HTML5?
Related
I want to make custom slots that accepts any and all entries as long as those entries follow a certain regex pattern, eg:any number of alphabets or numbers but without a space in between. Can anyone tell me if there is a way in amazon lex to achieve it?
Also, if I want to take a certain type of data, say, email ids, but want to give the user option to give any number of email ids (more than one), what is the way to do that.
I am new to Amazon Lex and any suggestions would be appreciated.
Make a slot in Lex console in your intent but do not tick as required, and give any type as slot type.
Now in lambda code, first set the slot to null and then parse the inputText using regex and assign the correct value to the slot.
This way both of your problems will be addressed.
Hope it helps. Let us know if you run in any problems.
I have a timetabling program I'm working on for my project and I'm working on adding error messages, I have a form with 5 edit boxes, entering values in this field update the times shown next to the periods on the timetable program (think like 06:45-08:45 and next one down says 09:00-11:00). I've stopped from someone entering a too long a string like 'OMGISTHISATEXTBOX'.
I'm trying to work out a way from showing an error message when the user enters anything with a char (letter), or not allow anything but integers and a hyphen symbol and a colon (-,:). I assume not allowing char values is easier, but doing the latter if possible would be amazing.
Many thanks for your help and hope this makes sense, if you need more info lemme know
-Adam
There are special components for these purposes:
TMaskEdit is intended for input restricting.
For time input you can use also TDateTimePicker
I'm a student using Xcode 6 and what I need to know is how the user can type input and then I can use that input in a formula. For instance:
The user inputs 5 in one field, 7 in another and 9 and a third and then I use these three numbers in a math formula to return a value. The formula could be something like: 9/7/5 = 0.25
I'm new to programming with Swift, and I have been searching the web for an answer and I somehow can't find what I'm looking for although it's a relatively simple concept. Code examples are definitely preferred and greatly appreciated.
It is quite simple. All you need to do is get the input values using the text property of UITextField like textField1.text
For more info refer to https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextField_Class/index.html#//apple_ref/occ/instp/UITextField
I have a field in my data with low, middle and high. I want to replace low with 1, middle with 2 and high with 3.
Is there a good way to do this?
(I'm very Beginner for SPSS software.)
Else you could simply write this as Syntax:
string new_variable (a1).
RECODE
old_variable
("low"="1") ("middle"="2") ("high"="3") INTO new_variable.
EXECUTE.
Got a link which solve my problem and sharing for others, who came accross for same problem.
http://www.unige.ch/ses/sococ/cl/spss/tasks/createdummies.html
Depending on what you're measuring you could consider to type the field as a ordinal value type. It is not technically an interval value.
if oldString="low" newNum=1.
if oldString="middle" newNum=2.
if oldString="high" newNum=3.
Is there a way to make sure that numbers are entered into an EditBox in a specific format?
ie when someone types 11 it adds a . after it so if someone types 1124 it will recorrect when it gets to the end of the second 1 and adds a . making it 11.24. This is intended for currency. This is made for an TEdit
Thanks
The easiest way is to use a TMaskEdit for this; it's what it was designed to do.
MaskEdit1.EditMask := '00.00'; // requires two digits before and after
// the decimal point
See the documentation for TEditMask for more information about the types of mask characters you can use.
Yes, the "mask" property. Check help.