This topic is locked
[SOLVED]

Identify Add page vs Add1 page in javascript

4/15/2022 10:09:54 PM
PHPRunner General questions
H
headingwest author

Hi,

After doing a page copy in the Designer tab I have 2 pages, add and add1

I want to have a checkbox ticked by default in add1 but not in add. How do I identify which page is loading in Javascript OnLoad? Both return a pageObj.pageID of 1

Thanks for your help.

D
david22585 4/15/2022

Use before display to get the page with $_GET["page"]. Then if the page == add1, set a proxy value to pas to javascript to be used.

H
headingwest author 4/16/2022

Thanks David, works a treat.