荷兰号码& 2小数点验证电源应用程序
英国数字看起来像这233.25。
对于荷兰号码,在Power App 233,25中看起来像这样。
由于小数分离器的逗号,这适用于英国的Power应用程序,但在荷兰不适用。我该如何更改它以使其正常工作?我尝试过一个或陈述,但它不起作用。 (((textInput.text,“ \ d+(。\ d {0,2})?”)) - regex
if(ismatch(textinput.text.text,“ \ d+(。\ d+(。\ d {0,2}}))? //证明是否满足格式 提交(form1),//如果结果为真,提交表格 nodify(“错误格式”,NotificationType.warning))//显示结果是否为false
A UK number looks like this 233.25 .
For a Dutch Number, it looks like this in the Power APP 233,25.
This works for the Power App in the UK but not in Holland, due to the comma for the decimal separator. How can I change this to get it to work? I have tried an OR statement but it does not work . ( ( TextInput.Text,"\d+(.\d{0,2})?") ) - REGEX
If(IsMatch( TextInput.Text,"\d+(.\d{0,2})?"), //justify whether meet the format
Submit(Form1), //submit the form if the result is true
Nodify("wrong format",NotificationType.Warning)) //display Notification if the result is false
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试自己格式化。不管用户输入是什么。
You could try to format it yourself. Regardless of what the user inputs.