Proxy field setup to select picklist value And update rich text content in Marketo Form | Community
Skip to main content
New Participant
December 2, 2020
Solved

Proxy field setup to select picklist value And update rich text content in Marketo Form

  • December 2, 2020
  • 1 reply
  • 2886 views

Hi @sanfordwhiteman 

 

In this community thread https://nation.marketo.com/t5/Product-Discussions/Picklist-value-to-store-in-Marketo-Form/m-p/305745#M172397 you suggested a  good piece of JS which really helped in setting up picklist value based on proxy field.

 

Now, business use case is to update the rich text content of Marketo Form along with picklist value.

i.e. In current, picklist value have either Yes or No only these two value. If proxy field setup the picklist value as Yes in that case rich text content of Marketo Form should also be change through JS and vice-versa.  is this scenario is feasible in Marketo Form? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Sure. You'd do it the same as in any HTML context. In the Rich Text, set up a <span> or other container with a unique id, class, or data- attribute.

 

Then listen for change events on the form. Change the textContent/innerHTML of the <span> accordingly.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
December 2, 2020

Sure. You'd do it the same as in any HTML context. In the Rich Text, set up a <span> or other container with a unique id, class, or data- attribute.

 

Then listen for change events on the form. Change the textContent/innerHTML of the <span> accordingly.