PowerApps - Restrict a Text Box to 2 decimals

 One of my project got a requirement to restrict the Text box to 2 decimal point. By default PowerApps not giving the option to restriction option. But we can do that using the formulae using the steps below.

  • Update following commands in "On Change" event of the Text Box.

UpdateContext(

   {

      texBoxValue

      Round(

         Value(Self.Text),

         2

      )

   }

);

Reset(Self)

  •  Update variable in "Default" of the Text Box.

                    texBoxValue

Hope this helps.

Comments

Popular posts from this blog

Linksys Wireless Connection Failure

The security validation for this page is invalid. Click Back in your Web

Access Denied Host Header Sharepoint 2010 Windows Server 2008 R2