• Resolved Agent 3W

    (@agent3w)


    Hello,

    I would like to set input default values based on current logged user in the front form.

    Does exist a way to do this ?

    If not, could you please add one filter somewhere in plugin code in order to allow alteration of form inputs ?

    Perhaps here :
    wp-content/plugins/mailin/sendinblue.php
    Line 516 (inside function generate_form_box, after testing $formData[‘html’] is empty)
    add : $formData['html'] = apply_filters('generate_form_data', $formData['html'], $formData);

    In this way, I could change input value=”{{my_value}}” with custom function.
    firstname => user->first_name,
    lastname => user->last_name,
    email => user->user_email.

    Thank you ??
    Best regards.
    Joffrey

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Brevo

    (@neeraj_slit)

    Hi Joffrey,

    Thanks for reaching out!

    Unfortunately, Sendinblue does not offer this feature,
    However, it does seem to be possible from within WordPress. Please reach out to WordPress support directly for assistance on this as Sendinblue does not have this ability.
    We were able to find this help article that seems to have some information on this feature: https://wpforms.com/how-to-use-dynamic-field-choices/

    I hope this clarifies your concern
    Kindly,
    Sendinblue Customer Support team

    Thread Starter Agent 3W

    (@agent3w)

    Hello,

    I don’t use WP Forms.

    Is it possible to you to add the above suggested filter in the plugin core file OR do you have a public repo on github / gitlab then I can propose a pull request.

    Thanks.

    Best regards.
    Joffrey

    Plugin Author Brevo

    (@neeraj_slit)

    Hi Joffrey,

    Thanks for your reply!

    Here us our GitHub repository: https://github.com/sendinblue
    Here is our API Reference Guide as well: https://developers.sendinblue.com/reference

    Please let me know if you have any other questions or need further assistance.

    Kind regards,
    Sendinblue Customer Care

    Thread Starter Agent 3W

    (@agent3w)

    Hello,

    thanks for the links but WP plugin repository is outdated, no update since 1 year.

    How to contact the dev team just to request adding one “hook” in the plugin ?

    Thanks.

    Best regards.

    Plugin Author Brevo

    (@neeraj_slit)

    Hi @agent3w,

    Thank you for your reply,

    Unfortunately, it is not possible for clients to contact our technical team directly. I have shared this feedback with them to see if it possible to add this in our future integrations.

    Please let us know if you have any other questions.

    Best regards,
    Sendinblue Customer Care

    Plugin Support Dulé

    (@lephenixdelafamille)

    Hi @agent3w we appreciate the feedback and your message is shared with our technical team.

    Thread Starter Agent 3W

    (@agent3w)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘User default values in form’ is closed to new replies.