Next, write the JavaScript in the footer HTML of the page settings.

Dive into business data optimization and best practices.
Post Reply
gafimiv406
Posts: 315
Joined: Tue Jan 07, 2025 4:29 am

Next, write the JavaScript in the footer HTML of the page settings.

Post by gafimiv406 »

On line 13, enter the public path you set for the serverless function /_hcms/api/demo/hello. Of course, you can include the domain.


Next, publish the page you created or test it by viewing it in preview.

Once the page is open, enter any text into the input field and press the send button. Here we will send "World!"

fig06

If you see "Hello! World!" then you've succeeded!

Conclusion
We tried running a simple serverless function. Did it work correctly?

Normally, in order to check the operation of a serverless function, you would need to use a variety of CLI commands, which can be difficult to develop and requires specialized knowledge, but using serverless functions makes it possible to create rich applications.

If you are using CMS Hub Enterprise, why not give it a try?

*The screenshots in the text are from February 2023.




Editor in Chief, Access Site
Editor in Chief, Access Site

We post useful information related to Marketing DX and Sales DX.
We also post information on the following official SNS accounts, so please follow us!

Visit our Facebook page
X View Post
Visit our LinkedIn page
Visit our YouTube page

Facebook
Twitter
LinkedIn
Note
Hatena Blog
Previous article
Back to blog list
Next Article
Popular articles
How to control HubSpot Video with a little JavaScript
2022.7.17

How to control HubSpot Video with a little JavaScript

Promote digital transformation by linking data with HubSpot! A thorough explanation of the five data linking methods!
2024.05.28

Promote digital transformation by linking data with HubSpot! A thorough explanation of the five data linking methods!

I want to create a pop-up form or banner in HubSpot
2023.4.26

I want to create a pop-up form or banner in HubSpot


2025.1.5

A must-see for B2B companies! A complete look at how "HubSpot implementation support services" can revolutionize your marketing and sales

Popular articles
[Google Fonts] 13 free Japanese fonts for web design + bonus
[Google Fonts] 13 free Japanese fonts for web design + bonus

[For Mac] Easy with 4 settings! How to use Slide Master - Basics -
[For Mac] Easy with 4 settings! How to use Slide Master - Basics -

How to view a report of external link clicks in GA4
How to view a report of external link clicks in GA4

[Solved in 5 minutes] How to calculate character spacing in Adobe XD from CSS letter-spacing
[Solved in 5 minutes] How to calculate character spacing in Adobe XD from CSS letter-spacing

[Basics] A thorough explanation of the basic usage of each HubSpot tool!
[Basics] A thorough explanation of the basic usage of each HubSpot tool!

table of contents

1.Create a serverless function folder
2.Overview of various files
serverless.json
Function file (hello.js)
3.Hello.js Improvements
4.Creating and running a test page
5.Conclusion
Popular Downloads
Accesite Company Introduction Materials
Accesite Company Introduction Materials

A 5-minute guide to HubSpot Content Hub
A 5-minute guide to HubSpot Content Hub

A 5-minute guide to HubSpot Marketing Hub
A 5-minute guide to HubSpot Marketing armenia number data Hub


Company introduction download

You can download documents summarizing Accesight Inc.'s company profile, support track record, services it offers and their features, creative production track record, implementation examples, and more.

Download

Inquiries and consultations

If you would like consultation or a qu
Post Reply