How can I show one jotform in lightbox, but have each link for different employee, while hidding the employee list

  • FrederickLiving
    Asked on January 20, 2015 at 2:30 PM
    The second is more of a question: I don't want to have to create a contact form for each staff but my client would like the user to click an "email me" link and have a form that goes to that employee in a lightbox. Is there some type of variable that can be passed to do this with jotform?
  • Jeanette JotForm Support
    Replied on January 20, 2015 at 3:37 PM

    I think you can sort that out using conditional logics.

    http://www.jotform.com/help/167-Create-Email-Notifications-to-send-to-a-different-email-address-based-on-a-condition

    So for your scenario, maybe adding a dropdown menu with the names of the employees would make the trick. In any case, maybe giving us more details about your scenario will help us to give you a better solution.

  • FrederickLiving
    Replied on January 20, 2015 at 9:18 PM

    Nope, that won't do. The pop up will just have:

    Name

    Subject

    Message

    No dropdown. The conditional would have to be in the email click code itself. Like passing a variable to a hidden field that would hold the conditionals to the recipient.

    The recipient will be determined by the email click. I figure I will just make a form for each person. That is the only way I know to do it via jotform.

    I wanted to keep all their forms in one place and not have to use gravity forms.

    Melanie

  • abajan Jotform Support
    Replied on January 21, 2015 at 2:56 AM

    Hi Melanie,

    Actually, the guide to which my manager referred would work for this too. It's just that instead of having a dropdown from which to select the names, the conditions would be set on the Full Name field. However, there are a couple of issues here:

    1. The only type of checks which can be performed on a Full Name field are if it is empty or filled:

    How can I show one jotform in lightbox, but have each link for different employee, while hidding the employee list Image 1 Screenshot 30

    and what's needed for this is one which checks if the name entered matches what you enter in the email box:

    How can I show one jotform in lightbox, but have each link for different employee, while hidding the employee list Image 2 Screenshot 41


    2. The other issue is that if the name entered by the user doesn't match exactly with what you enter in the condition, the email won't be sent

    For the above reasons, it would be better to use a dropdown for the name where all the employee names would be listed. Since a dropdown's options can't be edited by end users, there would be no chance of the names not matching.

    If you need clarification on anything, we'd be glad to provide it.


    Thanks

  • abajan Jotform Support
    Replied on January 21, 2015 at 3:48 AM

    Hi again,

    Only sometime after posting my reply did I realize that its second screenshot could be confusing because it depicts a "Show/Hide" condition instead of a Send an e-mail after submission one. What I meant was that once the name selected matches what you entered in the condition, the email would be sent to that user:

    How can I show one jotform in lightbox, but have each link for different employee, while hidding the employee list Image 1 Screenshot 30

    From the above you'll notice that the notifiers are labelled according to the employees' names. That isn't necessary but it makes it easier to match the correct notifier to the email you enter in the box.

    After creating all the conditions, you'll see Conditional next to each notifier

    How can I show one jotform in lightbox, but have each link for different employee, while hidding the employee list Image 2 Screenshot 41

    indicating that the email will only be sent when the condition is met.


    Thanks