荷兰号码& 2小数点验证电源应用程序

发布于 2025-02-13 18:10:32 字数 346 浏览 0 评论 0原文

英国数字看起来像这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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

彩虹直至黑白 2025-02-20 18:10:32

您可以尝试自己格式化。不管用户输入是什么。

Left(Value(TextInput.Text),Len(Value(TextInput.Text))-2) & "," & Right(Value(TextInput.Text),2) & "."

You could try to format it yourself. Regardless of what the user inputs.

Left(Value(TextInput.Text),Len(Value(TextInput.Text))-2) & "," & Right(Value(TextInput.Text),2) & "."

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文