Skip to main content

HI, is it possible pass a URL parameter to a Napili Template based Case Form and pre-populate a field?

Use Case- Customer receives an invoice in email and clicks on a link in the email to launch the Communities Case Form, invoice number is passed as a URL Parameter that populates the invoice text field on the form. 

2 comments
  1. Feb 25, 2016, 5:04 PM
    Hi @Kautuk Surjan

    Nice to meet you. 2 ways you can consider:

    1. Select a component like the ask the community button and change its title to;

    title to: "Ask the community about {!this}"

    then load the home page like: /s/?this=cats . For your question around the case form, try applying the same approach for fields exposed in the property editor of the case form component

    2. If you are using javascript, it's also possible to parse the "window.location" variable to figure out the query string

    Hope this helps !

0/9000