Your SAS programs, embedded in web apps and elsewhere

Assign value to radio button in html with value from dataset

Reply
Occasional Contributor
Posts: 19

Assign value to radio button in html with value from dataset

Hi,

I am trying to print an html reports page which checks if a particular record is present in the backend (in this case SAS dataset), and then display on to the html page so that the user can edit if required and save the changes.

I have been able to achieve displaying value of textboxes by assigning values to it.

data _null_;

  put "
document.getElementById(""mobile"").value=""&mobile"";"

;

it works fine for text box, but not for radio button and dropdown. can u kindly suggest a way to  display the values of Radio button and dropdown with the value from the backend. I am using JavaScript as the script language. Kindly provide a resolution.

Ask a Question
Discussion stats
  • 0 replies
  • 606 views
  • 0 likes
  • 1 in conversation