If you navigate to the property within the settings of your portal you should be able to view the "internal name" of the property. More information on this can be found here. I can't say for certain but if you've a property called "My question" the internal name is likely to be "my_question". See an example of a custom property I created in my portal:
You therefore would include the internal name of the property in the query string of the URL. In this instance "?my_question=XYZ".
You can see it in action by clicking the link below - I've setup an example form:
In the above you will see "my_question" is included as a parameter and the value you wish to insert into the field is included. You will notice the presence of "%20" this is indicative of a space in their question. URLs cannot contain spaces but of course a question someone asks will! So you represent those spaces using "%20". It's a concept known as URL Encoding.
If you navigate to the property within the settings of your portal you should be able to view the "internal name" of the property. More information on this can be found here. I can't say for certain but if you've a property called "My question" the internal name is likely to be "my_question". See an example of a custom property I created in my portal:
You therefore would include the internal name of the property in the query string of the URL. In this instance "?my_question=XYZ".
You can see it in action by clicking the link below - I've setup an example form:
In the above you will see "my_question" is included as a parameter and the value you wish to insert into the field is included. You will notice the presence of "%20" this is indicative of a space in their question. URLs cannot contain spaces but of course a question someone asks will! So you represent those spaces using "%20". It's a concept known as URL Encoding.
I am trying to pre-populate field for a custom question. Email, first/last name and phone all work fine - but not the custom field. How should I convert field name with a space in it to url param? ie. what "My question" would be in url params?
No there is not. From a usability standpoint the reason for this is that the duration is dependent on your own calendars availability and the idea is that the individual can choose a time. If we were able to pre-fill then this could cause complications whereby you might get double booked etc.
From a technical perspective the duration screen doesn't use input fields but rather button elements which cannot be prefilled. It has to be interacted with via a click from a user. This is not a HubSpot limitation but how the HTML button element is designed to work.
From Moz:
"The HTML <button> element represents a clickable button, used to submit forms or anywhere in a document for accessible, standard button functionality."