Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP Cloud SDK : Enable disable Textbox based on Radiobutton

Hi Experts,

We have developed the embed component as shown below.

Now we have requirement to enable / disable or Visible true /false Inputbox based on Radio button.

How i can achieve this.

Initially both inputbox disable by default.

My requirement is when user click on Radiobutton "InputBox 1" the Inputbox 1 enable for input.

and when click on radiobutton "Inputbox 2" Inputbox 2 enable for input and Inputbox 1 disable.

Anyone have idea how to achieve it.

Regards,

Mithun

Tags:
Former Member
Former Member replied

Use UI Scripting.

1. Bind the radio button to a field containing a code list

2. Set the "enabled"-property of the input fields to "Advanced" and select a calculation rule

3. As invalidation trigger (lower part of the dialog) select the field bound to the radio buttons

4. as calculation rule, use something like this:

if $data.radiobutton == "InputBox_1"

  result = true

else

result = false

end

with $data.radiobutton being the field bound to the radio button and "InputBox_1" being the code value for the selected radio button

Best regards,

Ludger

2 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question