Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

LC Script Editor - connot view the scripts

Avatar

Level 1

I have a form I developed with LC. I programmed in javascript a button to email onClick. My script is executing, but I can't see it. I wrote it yesterday and today I open it and there is NO javascript, but the button still performs as programmed.

Any ideas?  I am new to LC (love it!) but this is a bit confusing.   If someone could show me what I obviously don't have setup correctly, I would very much appreciate it.

Thx

6 Replies

Avatar

Level 8

Are you certain you have the right script event selected or select Events with Scripts?  Also check xml source to verify the code is there.  There was an older version of Designer where the script didn't show up because it was the same color as the background but that was resolved a few years ago

Avatar

Level 1

I selected the button and show:click.  It does list the the method, but my code is not there.  The code DOES execute though...weird.   I wanted to make a small change, but can't find the code to modify now.   I'm not sure if I recode the button:onclick again, will it execute twice????

Avatar

Level 4

Are you sure that you put the event on the click event? On the drop down list "Show" where you select "Click", there should be an option call "Events with Scripts". Try there, as it should show all scripts on the button, regardless of the event they are tied to...

- Scott

Avatar

Level 1

Sorry... I viewed all events.  There is NO code for any event for ANY of this (or the other 3) buttons.  When I click on that button (as a PDF) it executes properly.  It calls the mail handler, opens up a new message, loads the variables (recipients, subject, body) and attaches this PDF.

so weird!

Avatar

Level 1

 

found the code in XML

 

<event activity="click" name="event__click">

     <script contentType="application/x-javascript">

          ...my javascript code...