Skip to main content
Community site session details

Community site session details

Session Id : SCWHUbNEOURjEImMkOmIhg
Power Pages - General Discussions
Unanswered

How can I add a placeholder in a form field with power pages?

Like (0) ShareShare
ReportReport
Posted on 8 Mar 2024 08:57:25 by 17

Dear community,

 

Does anyone know how to add a placeholder in a form? I would like to include a placeholder for all the fields in my form, such as the phone number field where you have the placeholder: "Provide a telephone number".

 

Please help me with this problem.

 

Best regards,

Ferre 't Kint

 

FerreTkint_0-1709887561875.pngFerreTkint_1-1709888167189.png

 

 

Categories:
  • Fubar Profile Picture
    8,027 Super User 2025 Season 2 on 11 Mar 2024 at 22:03:34
    Re: How can I add a placeholder in a form field with power pages?

    As per GWham1 you would probably usually use result from previous step, but if the first step (and it is an edit form) or you are sending an paramter use id (or the parameter name you defined from the sending form).

  • GWham1 Profile Picture
    on 11 Mar 2024 at 11:03:31
    Re: How can I add a placeholder in a form field with power pages?

    Looks like you are using an Multistep Form (Advanced Form). It depends a little on exactly what the steps before are doing and which table you are using. If you're using Query String and have not specifically changed anything, you should be able to use id for that. If it's the same table as the before step you can also use "Result from previous step" instead of Query String.

  • FerreTkint Profile Picture
    17 on 11 Mar 2024 at 10:37:04
    Re: How can I add a placeholder in a form field with power pages?

    Dear @GWham1 

     

    I added the jQuery but I need to add a Primary Key Query String Parameter Name? What do I need to fill in? It's the first time I add javascript in Power pages.

    FerreTkint_0-1710153133315.png

     

  • GWham1 Profile Picture
    on 09 Mar 2024 at 11:27:43
    Re: How can I add a placeholder in a form field with power pages?

    You could use jQuery.

     

     <script type="text/javascript">
     $(document).ready(function() {
     $("#fieldid").attr("placeholder", "Placeholder text here");
     });
     </script>

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Loading started