Forums

Forums / Developing Portals / Pass ID from URL to an Entity field through a form

Pass ID from URL to an Entity field through a form

4 posts, 0 answered
  1. Missing user
    Missing user avatar
    17 May 2022
    Link to this post
    Hi,

    I'm in a situation where I need populate an Entity with some data (Guid ID) through a form. Similar to the way I can populate a static value widget with the logged in user contact ID. I have the ID available in the URL. It has been passed from a previous page. Is this possible using the interface, or some JS.

    Many thanks,
    Graham
  2. Vincent Yeung
    Vincent Yeung avatar
    1 posts
    Registered:
    19 Aug 2021
    18 May 2022 in reply to Missing user
    Link to this post
    Hello Graham,

    In the form configuration, you can select 'Custom query string'.

    If the ID is available in the URL i.e. ?query_param=your_id, then in the form configuration,  select 'Custom query string' and then enter query_param below.

    Let me know if you have any issues,

    Vincent
    TPC Web Developer
  3. Missing user
    Missing user avatar
    01 Feb 2023
    Link to this post
    I'm having the same issue, but the form has two entity look up fields I'd like to fill from a previous form that are in the query string and using the query string widget doesn't work. Switching the form config to custom query string looks like it would only supply one field and by changing that, will it fill in properly when editing the other values/returning to the page using the Previous button? Will it submit to the same form if I have multiple form configurations?
  4. Missing user
    Missing user avatar
    01 Feb 2023 in reply to Missing user
    Link to this post
    Hi Elizabeth,

    Using a custom query string should work in your case as well.

    Regards,
    Tom
4 posts, 0 answered