Display Radio button value

Dy 12 Jun, 2017
How to display value of radiobutton value at tcpdf? is it {data:record}? but it display number
example
0=New Record
1=Old Record
2=Current Record

how From numbers change to value using if else? Is it correct my code below?

if ({data:newRecord} ==0)
{
{data:newRecord} = "NEW RECORD";
}
elseif ({data:newRecord} ==1)
{
{data:newRecord} = "OLD RECORD";
}
elseif ({data:newRecord} ==2)
{
{data:newRecord} = "CURRENT RECORD";
}
GreyHead 12 Jun, 2017
Hi Dy,

Please see the third FAQ that Professor Calculus linked to and set useful values for your options.

Bob
This topic is locked and no more replies can be posted.