I’m sorry if this has been asked already and I am sure it is a basic question, but I am new to the development side of Wix and was not able to find the answer in the forum. I am trying to change a text label based on the value selected of a radio button. I tried the below, but it did not work.
rdoIdeaType is the radio button which has 2 values.
txtIdeaTyperesult is the text label. It is hidden on page load and becomes visible once a selection is made on the radio button; that part works. Now I am trying to change the text of the label based on the selection of the radio button and that piece is not working.
What am I missing?
export function rdoIdeaType_change ( event ) { $w ( ‘#txtIdeaTypeResult’ ). show ();
if ( $w ( ‘#rdoIdeaType’ ). value === “Product” )
$w ( ‘#txtIdeaTypeResult’ ). text === “Product” ;
else
$w ( ‘#txtIdeaTypeResult’ ). text === “Service” ;
}