web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How we set value 0 if ...
Power Pages
Answered

How we set value 0 if field doesn't contain any value

(0) ShareShare
ReportReport
Posted on by 31

How we set value 0 if the field doesn't contain any value

Captureop.JPG
Categories:
  • Verified answer
    oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi, is that a text field? you can set that via JS, something like this:

    if(!!!$("#FIELD").val()) 
     $("#FIELD").val("0");

     

  • unbeatbale Profile Picture
    31 on at

    Thanks for the reply 

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 20

#2
11manish Profile Picture

11manish 18 Super User 2026 Season 2

#3
DianePana Profile Picture

DianePana 9

Last 30 days Overall leaderboard