Using a merge tag with Ninja Forms integration

This topic contains 8 replies, has 3 voices, and was last updated by  Patrik 4 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #3932

    Ian Nuttall
    Expired Member
    Post count: 4

    Hey! I have two items set up (let’s say ID 1 and ID 2) and I have my Ninja Form set up with a radio select choice of two products, which is called “select_membership” and the value of each item is the corresponding ID for my items.

    In my hidden field called “Chosen Membership” I have the default value as {field:select_membership}.

    Then in my Create Invoice/Quote action I have “Chosen Membership” as my items.

    What I expected to happen was that when the form is submitted, the ID of the chosen membership would populate the hidden field, and Invoicing would add the correct item.

    This doesn’t work. The invoice is created but the item is not added, so the invoice total is just 0.

    Is it not possible to use a merge tag in this way? If not, what options do I have to allow the user to select the correct item to be added?

    #3939

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You will need to map the fields in the feed. Have you done that already?

    See: https://wpinvoicing.com/downloads/ninja-forms/

    If you would like us to take a look, please share WP Admin credentials in a private reply so we can take a look.

    #3942

    Ian Nuttall
    Expired Member
    Post count: 4
    This reply has been marked as private.
    #3949

    Ian Nuttall
    Expired Member
    Post count: 4

    Could somebody please take a look at this for us? Thanks.

    #3952

    Alex Rollin
    Moderator
    Post count: 27815

    Hi Ian,

    Unfortunately the developer that works on this was out today.

    They will take a look as soon as possible.

    #3982

    Ian Nuttall
    Expired Member
    Post count: 4

    Thanks, Alex. Please let me know as soon as you can because this was the primary use for purchasing the plugin.

    #3983

    Patrik
    Moderator
    Post count: 1971

    Hi,

    There should be item ID in the hidden field and not the shortcode or any text. If there are multiple items then the IDs can be separated by pipe sign “|”. Example: 100|101

    Regards,
    Patrik

    #3986

    Ian Nuttall
    Expired Member
    Post count: 4

    Hi Patrik, so are you saying that I cannot use a field variable in the hidden field?

    I have a hidden field called “Chosen Membership” and the default value is the value of the selected field in the radio list “Select Membership”. So the default value is {field:select_membership}. In this case, it’s 101, which is the item ID.

    Choosing the “Chosen Membership” field doesn’t populate items into the invoice. Basically I want the user to be able to select one of two memberships using a radio button, that value then gets stored to the hidden field, which is then passed to Invoicing as the Items.

    Is that not possible?

    #3998

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Yes, You can’t use the field variable in it as it will not have a value at the time of form displayed but it will add value to that field while processing the form. So in our add on we will not get the dynamic value while processing the form data. It should have fix value while displaying the form. You might take help of Javascript to add value to the hidden field on the radio button change event.

    Regards,
    Patrik

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket