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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Basic form currency fo...
Power Pages
Unanswered

Basic form currency format

(0) ShareShare
ReportReport
Posted on by 69

My basic form wasn't showing the bootstrap currency field on Currency type input fields (it looks like this):

Crocus_0-1689199623438.png

I added some code in jQuery to fix this:

$("input.money").parent().attr("class","input-group").css('width', '100%').prepend('<span class="input-group-addon">$</span>');
 
Now it is showing up twice! It must have added it automatically also. The next time I tried it, it only shows up once, via my code.
Crocus_1-1689199784008.png

 

Does anyone know under what circumstances Power Pages will put the Currency field formatting in?

When I test it without my code sometimes it shows up and sometimes it doesn't.

 

Categories:
I have the same question (0)
  • Verified answer
    Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    Hi @Crocus ,

     

    from what I know it usually should show up.

    Test it in multiple browser and what I found is that if using the power page not in preview but in public availability it loads a bit different, why soever.

    For your problem I would add some more JQuery and check if the currency sign is available, if yes do nothing if not add your sign.

     

    Hope that helps. Please mark the post as a solution if it solves your problem or consider a thumbs up when it helps.

     

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @Crocus ,

     

    Assuming you're using currency type columns on your basic form. Once you're creating record from Portal the currency sign is not added by default to the columns instead appear with currency sign but after creation, Portal automatically adds currency sign to currency columns. I think that is the reason why you're getting is doubled after adding your script. 

     

    If you have to show it at the time of creation, try to add your script only on create mode when record is not created instead remove it. It should work for you. 

     

    Here are two screenshots that I have taken for reference. 

     

    1- When adding record to the sub grid using Basic form.

     

    saudali_25_1-1689237442128.png

     

    2- It looks like this after I added this record.

     

    saudali_25_3-1689237537796.png

     

    Feel free to ask, if you have any questions.

     

    Thanks,

    Saud

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard