Hi there,
We have a use-case which requires the use of a QR code to direct a user to a pre-populated form in a Power Pages website. The QR code will contain a link with some query string parameters that relate to the form. The field that needs to be populated is a Lookup value. For example, we need to pre-populated the Product field on a form which creates a new ProductEnquiry row in the ProductEnquiry table. The Product field is a lookup on the Product table.
I can pre-populate the email address and other text-based fields of the ProductEnquiry form using JavaScript-> See Solved: Populate fields in form - Power Platform Community (microsoft.com)
I can also use this method to prepopulate the hidden html form fields related to the Product field.
- product_name
- product (The GUID of the product)
- product_entityname (The name of the Product table)
I would like to know if there is a better way of doing this in Power Pages?
Kind Regards,
Jason.