Skip to main content

Notifications

Community site session details
Power Pages - General Discussions
Answered

Unable to save custom code in powerpages vs code editor

Like (0) ShareShare
ReportReport
Posted on 22 Dec 2023 12:14:21 by 24

Hi Everyone,

I am currently working in a powerpages project and I am using custom code  for every requirement. Recently I have encounter an error while saving custom code in vs code editor. It does not allow me to save and this error is occurring frequently whenever I added new code. This error is not related to my code(I think) and I am also not able to find the solution regarding the error. I have also shared the screeen shot below. Can anyone help me in this?

Categories:
  • Verified answer
    Saud Ali Profile Picture
    812 Super User 2024 Season 1 on 27 Dec 2023 at 09:18:58
    Re: Unable to save custom code in powerpages vs code editor

    Hi @RohitAswal , 

     

    As I said in my earlier comment, Web File is best option. Web Templates and Web Files have a completely different purpose. Web Files are using to store your portal assets (css, js, images). And Web Templates provide you with actual HTML code for your pages. You, of course, can write a js code as a part of your Web Template (and you often will) but is not a most reusable scenario if you want to use that code in multiple places. So, better to move in Web Files.

     

    Feel free to ask, if you have any questions and Mark answer as a Solution to enable other users find it.

     

    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.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Pages - General Discussions

#1
WarrenBelz Profile Picture

WarrenBelz 9 Most Valuable Professional

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 9 Super User 2025 Season 1

#3
Rondel Profile Picture

Rondel 6

Overall leaderboard
Loading started
Loading started
Loading complete