Use Field value in button on grid

i use the following code in Onrecord

so that the value of the field sec_users_st_id is displayed in the field.

but i can’t get the value to be displayed. what do i do wrong?

image

First assign the value to a local variable and then include it in your code

$button = {sec_users.st_id};
{STUDENT} = ‘<button class=“button button2” style=“vertical-align:middle”><span>’ . $button . ‘</span></button>’

He somewhere i missed this. i tried that but now it’s working

i’m using this and it works

many thanks