Hi David-Ng,
What I wanted is to restrict Personalized Responses based on the role of the user... so, I've created a field for 'role' in the 'response' table, because I could restrict in the PDM_LIST that already exists in request_status_change.htmpl form (and in related forms too). This is the current code:
<PDM_LIST ESC_STYLE=JS2 prefix=list factory=response where="delete_flag=0 AND (response_owner IS NULL or response_owner = U'$cst.id') AND cr_flag=1">
Surely, one way to do this is creating a data partition restriction, since I could use "@root.role" structure. However, this would mean I should create this restriction for every partition in every role (current and future ones). And I think, if doing this in HTMPL forms was possible, that would be a more 'elegant' way.
Thanks,
Diogo