07-28-2021, 06:02 PM
(This post was last modified: 07-28-2021, 06:13 PM by Сергей Александрович.)
I'm sorry, I didn't understand where to set the DataType = stTel type ... There is no such property in TIWEdit...
procedure TIWF_Menu.IWEdit1HTMLTag(ASender: TObject; ATag: TIWHTMLTag);
begin
ATag.AddStringParam('inputmode', 'decimal');
ATag.AddStringParam('pattern', '[0-9]*');
ATag.AddStringParam('autocorrect', 'off');
end;
It works!
But what if this option is used for input:
Mess := 'Enter the PIN code to log in (numbers only)';
WebApplication.ShowPrompt(mMess, 'ClbPinWork', 'Authorization',", 'Ok', 'Forgot PIN');
procedure TIWF_Menu.IWEdit1HTMLTag(ASender: TObject; ATag: TIWHTMLTag);
begin
ATag.AddStringParam('inputmode', 'decimal');
ATag.AddStringParam('pattern', '[0-9]*');
ATag.AddStringParam('autocorrect', 'off');
end;
It works!
But what if this option is used for input:
Mess := 'Enter the PIN code to log in (numbers only)';
WebApplication.ShowPrompt(mMess, 'ClbPinWork', 'Authorization',", 'Ok', 'Forgot PIN');