Is it possible to bind 2 form fields to the same Marketo field? | Community
Skip to main content
April 15, 2016
Solved

Is it possible to bind 2 form fields to the same Marketo field?

  • April 15, 2016
  • 2 replies
  • 3141 views

Hello!

I'm trying to build a form and have a question about setting up fields.

The form I'm trying to build is pretty standard fare except for a text box field at the bottom. The text box field is tied to a field in Marketo which will send out a sales alert when it is filled.

Above the text box field is a piece of rich text (not attaches to any field) which simply exists as an instruction for the text box field (i.e. it asks the visitor a question whcih they answer in the text box field).

My question is this: is it possible to set the rich text above the text box field as a checkbox which is tied to the same field as the text box in Marketo? It sounds logical in my head but I feel that it would create a lot of issues. For instance, how would it affect form load? If the record that gets loaded already has data in that field, how does it pre-populate the checkbox and the text area?  Or, more importantly, how do both fields update the apptComment field?  Doesn’t one take priority and overwrite the other value?

The way it currently works with the smart campaign is that it checks if the text box (i.e. the marketo field on form submission) is not empty and then sends the alert.

Would love to hear some clarity around this.

Thank you.

how that is supposed to work on a form load.  If the record that gets loaded already has data in that field, how does it pre-populate the checkbox and the text area?  Or, more importantly, how do both fields update the apptComment field?  Doesn’t one take priority and overwrite the other value?

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 Grégoire_Miche2

Hi Danish,

This will not be possible at form level without some JS development.

But why don't you just use 2 Marketo fields, one being a checkbox and the other being a text field ? You would then use some "field visitbility" rules to show the text field only when the checkbox is checked. You would also use some smart campaigns to reset the values once the alert email has been sent. (to nullify a field, just use a "change data value" flow step with a new value = NULL).

-Greg

2 replies

SanfordWhiteman
New Participant
April 15, 2016

You can certainly add a checkbox in a Rich Text field, then attach behaviors to it using JS. It doesn't have to correspond to a Marketo field in this case (you can put anything you want in the RT/HTML). 

But I don't understand exactly what you mean by having a checkbox (which is a boolean yes/no) send data to a textarea (which is free text). Do you want it to, for example, write the string "yes" to the textarea (if the textarea is then empty) and then hide the textarea?  This is quite possible. You'd then have to do the reverse on every form load as well: if the textarea is prefilled with existing data, then hide the checkbox.  All of this is doable.

Grégoire_Miche2
Grégoire_Miche2Accepted solution
New Participant
April 15, 2016

Hi Danish,

This will not be possible at form level without some JS development.

But why don't you just use 2 Marketo fields, one being a checkbox and the other being a text field ? You would then use some "field visitbility" rules to show the text field only when the checkbox is checked. You would also use some smart campaigns to reset the values once the alert email has been sent. (to nullify a field, just use a "change data value" flow step with a new value = NULL).

-Greg

April 18, 2016

Hi Gregoire,

That totally makes sense. Thank you!