Copied to clipboard

Flag this post as spam?

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


  • Cyrus Hiatt 9 posts 72 karma points
    Jan 02, 2024 @ 12:30
    Cyrus Hiatt
    0

    Hidden Form Field Question

    I need to add a hidden form field on my site that looks like this:

    <input type="hidden" id="gclid_field" name="gclid_field" value="">
    

    When I log into the CMS and add a question called "Hidden" there are no options to add the ID and name of the input.

    I looked into the hiddenfield.cshtml code and see the following:

    @model Umbraco.Forms.Mvc.Models.FieldViewModel
    <input type="hidden" name="@Model.Name" id="@Model.Id" data-umb="@Model.Id"  class="hidden" value="@Model.ValueAsHtmlString"/>
    

    I don't have that much experience with Umbraco Forms and was wondering if someone could help guide me on how to resolve this?

    This is basically what I am trying to do right now: https://support.google.com/google-ads/answer/7012522?hl=en

    For more context I am trying to capture this click id when someone submits a form. enter image description here

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies