Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add inputType property into Text Question #141

Closed
andrewtelnov opened this issue Nov 30, 2016 · 6 comments
Closed

add inputType property into Text Question #141

andrewtelnov opened this issue Nov 30, 2016 · 6 comments

Comments

@andrewtelnov
Copy link
Member

inputType property, default value is "text".
Possible values are: "color", "date", "datetime", "datetime-local", "email", "month", "password", "range", "tel", "text", "time", "url", "week".

@andrewtelnov
Copy link
Member Author

It is implemented

@klvbdmh
Copy link
Contributor

klvbdmh commented Dec 2, 2016

I can't find "number" on the dropdown menu. Manually writing it in JSON editor works. Am I missing something?
surveyjs-number

@andrewtelnov
Copy link
Member Author

@klvbdmh I can't believe I have missed "number" in the choices.
Fixed.

@SaraaAwwad
Copy link

Hello,
How can I hide one of those properties? for example: i dont want "email" to be shown in the choices.
Thank you.

@andrewtelnov
Copy link
Member Author

andrewtelnov commented Mar 21, 2021

@SaraaAwwad Are you asking about SurveyJS Creator? You can set your choices or update the current string array.
UPD:
Survey.findProperty("text", "inputType").setChoices(youArrayOfInputTypes);

Thank you,
Andrew

@SaraaAwwad
Copy link

I did, but I'm facing this error:
" ERROR TypeError: Cannot set property choices of [object Object] which has only a getter "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants