Hi All,
I would like to treat my form as a kind of workflow.
1. Form is filled in by the user and sent to Manager via email.
2. Manger open form via email and click ACCEPT. Form is sent to the SharePoint and to Administration department
3. Administration dep. Open the form via email and click the link, which is placed in the form
There are 2 buttons and 1 link: SENT FOR APPROVAL, ACCEPT and LINK. I would like to visible button SENT FOR APPROVAL only on 1st step (form initiator), button ACCEPT only on 2nd step (Manager) and LINK only on step 3rd (Administration dep.) What I came up?
I would like to add a filed STATUS (hidden for users) with default value = 0 and if the user press the button status will be change to 1 (I reached this by using rules) and I set up other rule to visible button SENT FOR APPROVAL only in case when status = 0. Form is sent to manager - When manager open the form status will be change to 2 (how the code should look like?) and I will setup the rule to visible button ACCEPT only in case when status =2. When the Manager presses the button ACCEPT value in STATUS field will be change to 3 (using rules). Form is sent to Administration dep. – When Administration dep. Open the form value in field STATUS will be change to 4 (how the code should look like?) and I will set up the rule to visible LINK only in case when STATUS = 4.
MY MAIN QUESTION IS: HOW TO WRITE THE CODE TO CHANGE VALUE IN FIELD STATUS TO +1?
Thank you in advance