Trying to embed a form that includes program ID in wordpress

Jay_Jiang
Level 10

Re: Trying to embed a form that includes program ID in wordpress

No code examples as I didn't implement it myself.

 

I worked with a wordpress dev at one of my clients to implement a dropdown picklist that listed program names starting with "!Webform-" whenever the picklist was opened.

 

We used the browse programs api call to get the first page only (since results are ordered alphabetically we only needed the first page). within the wordpress php function, we filtered for only names starting with "!Webform-", and populated the picklist options with the results.

 

Our use case was different, we had frontend forms that were storing entries in wordpress and sending a copy to Segment.io that used the push leads to Marketo API call (which needed program names). But it's an example of how you can build something in your CMS to dynamically get the data you need using the API.