I've designed a form to be used by a set of users, where numerous buttons / actions / rules are defined.
Now, I'm looking to produce a read-only version of this exact same form. I created another state, and able to alter the Initialize rule for this second state (titled "read-only") to not allow interaction. Seems to work in that the read-only state has buttons hidden, and all double click events are disabled... while keeping things the same on the "standard" state.
Final step is to bind which user accounts will be taken to which state. Most users should go to full interactive state.. but I need other set of users to be taken to another state (the read only)
How can I configure a rule that during initialize (??) when the user is X, then use state "standard" and if user is Y, then use state "read-only"?
*side note.. Would like to put the logged in user value on my form too.. just in a text box for knowing "who's logged in.".. but again.. cannot seem to find current user in the smart forms context menu. How do you write smart form rules / full value from the current user?
This is with the newest K2 smart forms.. and there is no workflow at play yet. Workflows are started from actions ON THIS form. (and thus the reason why I need a read only version.. so that some people do not trigger these workflows).
Thanks,
Scott G