• Resolved kjetilwaage

    (@kjetilwaage)


    Hey!
    I have two questions.
    1. Is it possible to hide fields in the sent email that are not filled in the form?

    2. It is possible to fill in a text field automatically in relation to choices made in the select list (dropdown menu?)?
    I have a list with names and i want the email field to get the email of the chosen name automatically 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    1.- Yes, you can use the fixed value ‘Field Summary’, this will automatically include only the fields that were submitted, is that what you need? More about fixed values here: http://sfmanual.rednao.com/documentation/emailing/fixed-values/

    2.- Sorry, i will need a little clarification to answer this, so you have a dropdown and when they select an specific item in the dropdown you want to include an email in the email body? Or you want to send the email to a different address depending on what they select in the dropdown? Please let me know =).

    Thread Starter kjetilwaage

    (@kjetilwaage)

    Thanks for replay!
    Was not exactly what I was thinking about.
    I will try to explain a little better.

    1. If a person leaves a field blank, eg “Address:” (see image)
    I want this line hidden in the email.
    Could maybe be done like this?

    [if field adresse]
    Adresse: [field adresse]
    [/field adresse]

    form

    2. Yes almost 😀
    I want to change “From email address” field depending on what they select in the dropdown

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Ah got it.

    1.- Sorry unfortunately that is not possible yet. There are plans to add this but for now adding conditions in the email body is not possible. Are you familiar with php? If so i think you could tweak the field summary function to do this. Currently it only shows the filled fields but i think it could be easily modified to include an empty line if the field is not filled.

    2.-I think this can be done by including an email field in your form (you can hide it with css if you want) and using a formula to fill it. Then you could use this email field in the from email address. Would that work?

    Regards!

    Thread Starter kjetilwaage

    (@kjetilwaage)

    Thanks!
    1. Ok, then I see and see what’s coming later

    2. Yes I thought maybe something like that would work.
    How do i make the formula ?

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    Sorry for the delay, the formula is kind of complex but something like this should work:

    1.- Add one amount value to each of your drop down items
    2.- Add a formula like this to your email field:
    (function(){
    if([field rnField2]==1)
    return “email1@domain.com”;
    if([field rnField2]==2)
    return “email2@domain.com”;

    })()

    You need to replace rnfield2 for the id of your dropdown field and add the string bellow for each item in your dropdown:

    if([field rnField2]==1)
    return “email1@domain.com”;

    So for example if you have a dropdown with three items you could assign a sequential number (in the amount section of your item) and then your formula could look like this:

    (function(){
    if([field rnField2]==1)
    return “email1@domain.com”;
    if([field rnField2]==2)
    return “email2@domain.com”;
    if([field rnField2]==3)
    return “email3@domain.com”;

    })()

    So… yeah, kind of complex but if you need help with this let me know =).

    Thread Starter kjetilwaage

    (@kjetilwaage)

    Thanks!
    Where do i add this code ?

    Plugin Author EDGARROJAS

    (@edgarrojas)

    You need to add a new field (if you want you could hide this field with conditional logic or with custom css) and add this code in the formula section of the field:http://sfmanual.rednao.com/documentation/calculatedfields/creating-formulas/

    Hope this helps but if it doesn’t please let me know!

    Thread Starter kjetilwaage

    (@kjetilwaage)

    Hey!
    Thanks for adding the if condition 😀
    Tried to fix the email field with your code, but did not make it work?

    I think this is possible with at simple javascript?
    I will try to explain it again.

    Look here: http://www.vestbris.no/emabestilling/
    I have a dropdown menu with a list of names and i have a email field that the user have to type in their email every time they post a order.
    My users are lazy and do not bother to enter their e-mail whenever they have to send an order.
    So when a user pick their name from the list i want the email field to automaticly put in their email adress.

    Thanks 😀

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Email fields and Autofill text field ?’ is closed to new replies.