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

AEM Webform radio button display value use

Avatar

Avatar
Validate 1
Level 1
baronforo
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Shape 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
baronforo
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Shape 1
Affirm 1
View profile
baronforo
Level 1

03-02-2021

I need to access the display value for a radio button in another field on my adaptive webform. 

For example: 

red=Red Car

 

I have a different field that needs to show "Red Car". However, for some reason, on the second field, 

this.value=rbCarColor.displayvalue; does not work. 

 

Anything I'm missing, or is displayvalue not available for radio buttons? 

 

Thanks!

AEM 6.5.5.0 displayvalue radio buttons webform

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
baronforo
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Shape 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
baronforo
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Shape 1
Affirm 1
View profile
baronforo
Level 1

03-02-2021

Unfortunately, that doesn't really help, this is building the list, not using an existing one, and as they are still all keying off of the value, not display value. 

Radio button: rbServiceQuality

1=1. Bad service

2=2. Good service

 

My workaround is to set the value to be the full string, and then use regex to set the slice the first value. 

Radio button: rbServiceQuality

1. Bad service

2. Good service

 

Number box: numServiceCalculation, code editor to Calculate

var str = rbServiceQuality.value;
var res = str.slice(0, 1);

this.value=res;

 

This gives me the numeric score of 1, 2, etc. 

 

Then for my calculation, I can use 

Answers (1)

Answers (1)

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

162 likes

Total Posts

232 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

162 likes

Total Posts

232 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

03-02-2021