Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick 84 posts 451 karma points
    Mar 29, 2017 @ 16:05
    Nick
    0

    Custom fields

    Hi,

    I'm using your fantastic uContactor plugin in my Umbraco v7.5 site and it works great. I'd like to add an extra field for contact number within the form also change the "Ya Ya, Leave a message" title, not sure how to change this in either the settings or dictionary items. Could you please advise on the above on how best to implement these to this excellent plugin?

    Many thanks

    Nick

  • Delly Mellas Nyman 64 posts 316 karma points
    Mar 30, 2017 @ 03:00
    Delly Mellas Nyman
    100

    Hi Nick,

    Thanks for using uContactor before. Of course you can make change to all text, just edit the contactForm.cshtml or customContactForm.cshtml from views directory. Or you can create your own dictionary and use it in your view file.

    To call customContactForm.cshtml you can use:

    @Html.Action("RenderCustomContactForm", "Contact")
    

    -

    Delly

  • Nick 84 posts 451 karma points
    Mar 30, 2017 @ 15:43
    Nick
    0

    Many thanks Delly,

    I didn't even notice the Custom form field, I assumned everything was packaged up inside the DLL. Just one question though, I'm using the extra form field for Phone Number, and having trouble printing this within the email from contact message. Do you know what the %% value would be?

    Many thanks again

  • Delly Mellas Nyman 64 posts 316 karma points
    Apr 03, 2017 @ 11:38
    Delly Mellas Nyman
    0

    Hi Nick,

    Unfortunately you can't do that this time, maybe you can create your own controller to sending email, you can modify your controller like this https://github.com/dellykaos/uContactor/blob/v1.0.4/uContactor/Controllers/ContactController.cs to handle your own contact form.

    Delly

  • Nick 84 posts 451 karma points
    May 06, 2017 @ 09:21
    Nick
    0

    Many thanks for the suggestion, will I have to use Umbraco's source files and recompile the solution in Visual Studio? If so which DLL's / files will I have to copy across?

    Kind regards

    Nick

  • Nick 84 posts 451 karma points
    May 10, 2017 @ 10:57
    Nick
    0

    Managed to solve the issue, by amending the ContactController and adding the file to the App_Code folder within Umbraco, so no messing around with VS :-)

  • Nick 84 posts 451 karma points
    May 26, 2018 @ 08:52
    Nick
    0

    Hi Delly,

    Hope you are well, thanks for helping e out in the past with your excellent plugin, I still continue to use it with my other projects great work. I have another request I hope you can help with, how would I enable the contact form to use reCaptcha v2 and validate? Any help would be much appreciated.

    Thanks again

    Nick

Please Sign in or register to post replies

Write your reply to:

Draft