Forums

Forums / Developing Portals / Custom Query String and Grid records edit

Custom Query String and Grid records edit

2 posts, 0 answered
  1. Kripesh C K
    Kripesh C K avatar
    10 posts
    Registered:
    28 Jan 2021
    24 Feb 2021
    Link to this post
    Hi Guys,

    How can I pass Custom Query String in to a form. Can I know the format of that. Also I am unable to edit Grid records by using the edit button. The data of the records are not populated to the form. 

    Regards
    Kripesh
  2. Omar S
    Omar S avatar
    51 posts
    Registered:
    04 Jul 2019
    24 Mar 2021 in reply to Kripesh C K
    Link to this post
    Hi Kripesh, 
    You can add a custom query string via Javasript api's on the browser. See https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams 
    e.g., 
    var searchParams = new URLSearchParams(window.location.search)
        searchParams.set("foo", "bar");
        var newRelativePathQuery = window.location.pathname + '?' + searchParams.toString();
        history.pushState(null, '', newRelativePathQuery);

    If you want the query string to be passed as a value to your CRM, I suggest you look at our Query String widget. 

    https://www.crmportalconnector.com/developer-network/documentation/portal-connector-widgets/tpc-form-widgets/mvc-based-examples/querystring/querystring---setting-up-and-using-the-crm-querystring-widget 

    For your second question, i suggest you attend one of our daily Q+A and ask it. 
    https://www.crmportalconnector.com/support/training/daily-q-a-registration

    Thanks 

    Omar

    Last modified on 24 Mar 2021 16:03 by Omar S
2 posts, 0 answered