0

I'm wondering if it's possible to add JavaScript code to an Acumatica web page through a customization.

Thanks for your help!

Fran Parker

2 Answers 2

4

Another way is to create customization for existing page. In Layout Editor select "Actions->Edit Aspx", add the following code

<px:PXLiteral runat="server" ID="s">
    <script type="text/javascript" src="myscript.js"></script>
</px:PXLiteral>

and click "Generate customization script"

Sign up to request clarification or add additional context in comments.

5 Comments

This is more recommended practice to add code to aspx other than creating a new aspx, as when you upgrade your version of ERP, this helps to inject the code to the new(if available) aspx page.
Hi! I tried this code but when I tried to generate it destroys the PXLiteral tag.
The latest version of Acumatica has build in ability to add Javascript to customization.
With PXLiteral control, you should add <px:PXLiteral runat="server" ID="s" /> tag first, then insert script through customization property editor. Content of PXLiteral control should encode html tags with &lt; &gt;
I tried this but it doesn't work. After I click on "Generate Customization Script" with the code in aspx, it rolls back to the original html script in aspx.
1

You can add js code to your aspx page, and then add this page to your customization package. Here you can see example of adding js code.

1 Comment

Excuse me, could u tell me how to add JavaScript source into acumatica customization?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.