Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Add a line break to a text area

Eslam_ElbyalyNov 14 2021

Hi,
I am using APEX 21.1. I have a radio group "P6_DISEASES" that gets it's values from sql query that returns the following values "Diabetes", "IBS", etc... . And another text area named "P6_NOTES. I need to set the value of P6_NOTES to it's value concatenate a line break "<br>" concatenate the display value of the clicked radio button.
Suppose that P6_NOTES has the value of "Stroke" at the first line of the text area. When the user clicks "IBS" radio button, P6_NOTES should have...
Stroke
IBS
Each should be displayed per line. When user clicks on another radio button, it's value should be written to a third line.
I tried,
var vChosenValue = apex.item("P6_DISEASES").displayValueFor($v("P6_DISEASES"));
$s("P6_NOTES", $v("P6_NOTES") + "<br> " + vChosenValue);
in an onChange dynamic action but it concatenates <br> as a string to the clicked radio button display value.

This post has been answered by Eslam_Elbyaly on Nov 14 2021
Jump to Answer
Comments
Post Details
Added on Nov 14 2021
1 comment
1,360 views