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

Radio button

Avatar

Avatar
Level 1
peterr70275703
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
peterr70275703
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
peterr70275703
Level 1

04-05-2016

I have implemented a number of forms using Life Cycle Designer without a problem. Now I want to create a form with radio buttons and I have run into a problem. Say I set up an exclusion group 'RB' with two buttons, and in the result field 'Answer' I enter the JavaScript  'this.rawValue = RB.rawValue'. When I test it, one button returns '1' and the other '2'. All well and good. The problem is when I try to capture the result and use it - in an 'if' statement, for example - I get an error and the result is no longer acted upon. This should be simple. What am I doing wrong?

Accepted Solutions (0)

Answers (5)

Answers (5)

Avatar

Avatar
Level 1
peterr70275703
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
peterr70275703
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
peterr70275703
Level 1

20-05-2016

Apparently this is an insoluble problem. I will close the discussion. Peter

Redwood

Avatar

Avatar
Level 1
peterr70275703
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
peterr70275703
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
peterr70275703
Level 1

10-05-2016

Is this an insoluble problem?

PR

Avatar

Avatar
Level 1
peterr70275703
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
peterr70275703
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
peterr70275703
Level 1

07-05-2016

Corrected script (I missed a parenthesis):

this.rawValue = RB.rawValue ;

if (parseInt(this.rawValue) = 1) then 50

elseif (parseInt(this.rawValue) = 2) then 100 endif;

Avatar

Avatar
Level 1
peterr70275703
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
peterr70275703
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
peterr70275703
Level 1

07-05-2016

This was the script I tried, but it gave an error:

this.rawValue = RB.rawValue ;

if (parseInt(this.rawValue) = 1) then 50

elseif (parseInt(this.rawValue) = 2 then 100 endif;

Avatar

Avatar
Validate 1
Level 4
paulk07
Level 4

Likes

29 likes

Total Posts

293 posts

Correct Reply

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

Avatar
Validate 1
Level 4
paulk07
Level 4

Likes

29 likes

Total Posts

293 posts

Correct Reply

20 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
paulk07
Level 4

07-05-2016

Can you post the script you are using?