Launch WF on clicking a button on form
Hi All,
I have a requirement where two different admins have to be notified in case the user needs a certificate. I included a field on Tabbed user form, where in the user clicks 'YES' if he needs a certificate. But i am unable to figure out how to reference it in the workflow and direct notifications accordingly.
Help Please.
Thanks,
[363 byte] By [
sungirla] at [2007-11-27 9:10:40]

# 1
Can't you just check for the value of the field in your Update User workflow? Then if it is set to the value you are looking for, you can fire off notification events.
# 2
Hi Jim,
Thanks for the reply. I understand how it should work, but am not able to implement that. Here is the field that i added in the tabbed user form
<Field name=':variables.Certificate Required?'>
<Display class='Checkbox'>
<Property name='title' value='Certificate Required?'/>
<Property name='help' value='Check the box if the user needs a certificate.'/>
</Display>
</Field>
Now, i want to modify the 'Notify' activity of create user workflow, such that, if the certificateRequired? check ox is selected 2 ppl need to be notified, else just one person needs to be notified.
My queston is, how do i check for that in the workflow? How will this field be stored in the repository? What do i chk for?
I tried creating a user with the chek box checked, however, i couldn't see the field in the userView.
Please help.
Thanks,
# 3
Hi,
The problme i'm having now is that the user is getting notified, but the admin is not getting notified even when i check the certificate required check box. Somehow this value of check box is not gettin passed into the WF i guess. Here is the change i made to the form (tabbed user form)and the way i'm calling in in the WF (created user)
Field added to Tabbed user form
<Field name=':variables.Certificate Required?'>
<Display class='Checkbox'>
<Property name='title' value='Certificate Required?'/>
<Property name='help' value='Check the box if the user needs a certificate.'/>
</Display>
</Field>
Create User WF- Incorporated this action under provision
<Action id='5' name='Check for certificate'>
<set name='user.global.Certificate Required?'>
<ref>Certificate Required?</ref>
</set>
</Action>
<Transition to='Notify1'> - Both admin and user templates as args
<isTrue>
<ref>Certificate Required?</ref>
</isTrue>
</Transition>
<Transition to='Notify2'> - Just the user template
Any help is appreciated,
Thanks
# 4
change the filed in tabbed user form as
<Field name='Certificate Required?'>
<Display class='Checkbox'>
<Property name='title' value='Certificate Required?'/>
<Property name='help' value='Check the box if the user needs a certificate.'/>
</Display>
</Field>
u get the value of filed in createuser workflow asuser.Certificate Required use it in transition
# 5
banti_idm,Thanks a lot. It worked