Expand my Community achievements bar.

Is This Difficult To Do?

Avatar

Former Community Member
I have a table (one column, two rows). The top cell is a set of radio buttons. The bottom cell is just plain text. I want the text of the text cell to change based on which of the two radio buttons is selected above. My issue, I think, is in properly referencing the bottom cell in the top cell's click event. Here's what I have so far:



if (RadioButtons.rawValue == true)

{

xfa.resolveNode("form1.Form.Table1.Row2.Text1").rawValue = "Home";

}

else

{

xfa.resolveNode("form1.Form.Table1.Row2.Text1").rawValue = "Cell";

}



How do I properly reference the bottom cell (Text1)?



Thanks for your help!
2 Replies

Avatar

Level 7
The ".rawValue" property refers to the current value of the button field or any field. ".#text" property refers to the caption text of the button or other field.



if (RadioButtons.rawValue == true)

{

xfa.resolveNode("form1.Form.Table1.Row2.Text1").#text = "Home";

}

else

{

xfa.resolveNode("form1.Form.Table1.Row2.Text1").#text = "Cell";

}



This information and more about fields in LiveCycle Designer are in the "Scripting Referecne".

Avatar

Former Community Member
I'm not trying to change the caption of a field, I'm trying to manipulate the actual text of a cell.



I've been able to accomplish this in other instances. For example, if the radio buttons are outside of a the table, I can use the above script to manipulate a table cell's text. But once I place the radio buttons inside the table itself, the script no longer functions.



Any other ideas?