Jump to content

Code Enabled Text Area - Script not saving


AdinaG

Recommended Posts

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

235805476_ScreenShot2019-06-28at11_17_26AM.png.681604b9e6710b6ecdc50a34008c1ab2.png

 

 

 

The label is showing on the front-end detail page but when I go to add the script in admin, it won't save...

983868371_ScreenShot2019-06-28at11_14_46AM.png.6abab17d31502898d06902ada419b8c7.png

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...