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

Power Apps toPower Automate Error - The input body for trigger 'manual' of type 'Request' did not match its schema definition , the input String does not validate against the date