Discussions

Expand all | Collapse all

Default value when no value is present

  • 1.  Default value when no value is present

    Posted 23 days ago
      |   view attached

    I am using a query string in Ninja Forms to determine a Site ID value. The query string is {querystring:site}. So, for example, when a URL contains the value of ?site=1, a Webhook is set up to tell Quick Base that the Site ID is 1.  This works great when the site ID is present. However, when there is no site ID, it doesn't do what I need it to do.

    My goal would be, if no site ID value is present (?site=?), the default is 1. I tried to do this in fields here, but it didn't work. Any other suggestions? 




    ------------------------------
    Mathew Crist
    ------------------------------


  • 2.  RE: Default value when no value is present

    Posted 22 days ago
    I'm not familiar with Ninja Forms, but it's possible that your webhook is passing a value for Site ID that Quick Base is interpreting as Null and so it is making sure the field is empty. I would check to see if there is a way to send different webhooks based on if the Site value is present or not.

    ------------------------------
    Blake Harrison
    bharrison@datablender.io
    DataBlender - Quick Base Solution Provider
    Atlanta GA
    404.800.1702 / http://datablender.io/
    ------------------------------



  • 3.  RE: Default value when no value is present

    Posted 12 days ago

    Hi Blake,

    Sorry for the delay in responding. I appreciate the help!

    I was able to add conditional logic in Ninja Forms (using a NF add-on) to add the value of '1' when value = [ ].

    Best,

    Matt 



    ------------------------------
    Mathew Crist
    ------------------------------