AdinaG Posted June 28, 2019 at 03:19 PM Share Posted June 28, 2019 at 03:19 PM Hi Alejandro! I'm trying to figure out how to add a javascript field to the listing detail page. I followed the directions for creating the field and having it display only for Super User https://docs.jreviews.com/?title=Fields_Manager The label is showing on the front-end detail page but when I go to add the script in admin, it won't save... Here is an example code I need to put in the field <button id="example-widget-trigger" type="button">Buy Tickets</button> <script src="https://www.eventbrite.com/static/widgets/eb_widgets.js"></script> <script type="text/javascript"> var exampleCallback = function() { console.log("Order complete!"); }; window.EBWidgets.createWidget({ widgetType: "checkout", eventId: "52766401728", modal: true, modalTriggerElementId: "example-widget-trigger", onOrderComplete: exampleCallback }); </script> Any idea what I'm missing? Thanks! Adina Link to comment
Alejandro Posted June 28, 2019 at 03:34 PM Share Posted June 28, 2019 at 03:34 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
AdinaG Posted June 28, 2019 at 03:38 PM Author Share Posted June 28, 2019 at 03:38 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
AdinaG Posted June 28, 2019 at 03:45 PM Author Share Posted June 28, 2019 at 03:45 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.