


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?
Views
Replies
Sign in to like this content
Total Likes
Can you post the script you are using?
Views
Replies
Sign in to like this content
Total Likes
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;
Views
Replies
Sign in to like this content
Total Likes
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;
Views
Replies
Sign in to like this content
Total Likes
Is this an insoluble problem?
PR
Views
Replies
Sign in to like this content
Total Likes
Apparently this is an insoluble problem. I will close the discussion. Peter
Redwood
Views
Replies
Sign in to like this content
Total Likes