Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

LC Script Editor - connot view the scripts

Avatar

Avatar
Level 1
mhsf
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mhsf
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
mhsf
Level 1

22-08-2012

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Avatar

Avatar
Level 1
mhsf
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mhsf
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
mhsf
Level 1

22-08-2012

 

found the code in XML

 

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

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

          ...my javascript code...

Avatar

Avatar
Level 1
mhsf
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mhsf
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
mhsf
Level 1

22-08-2012

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

Avatar
Validate 1
Level 2
past-tense
Level 2

Likes

9 likes

Total Posts

85 posts

Correct Reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
past-tense
Level 2

Likes

9 likes

Total Posts

85 posts

Correct Reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
past-tense
Level 2

22-08-2012

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

Avatar
Level 1
mhsf
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mhsf
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
mhsf
Level 1

22-08-2012

here is a screen shot

Pic.jpg

Avatar

Avatar
Level 1
mhsf
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mhsf
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
mhsf
Level 1

22-08-2012

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

Avatar
Boost 50
Level 5
TundraSteve
Level 5

Likes

51 likes

Total Posts

442 posts

Correct Reply

57 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Level 5
TundraSteve
Level 5

Likes

51 likes

Total Posts

442 posts

Correct Reply

57 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
TundraSteve
Level 5

22-08-2012

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