Unhide hidden field in form when link is clicked in rich text? | Community
Skip to main content
Level 2
February 15, 2025
Solved

Unhide hidden field in form when link is clicked in rich text?

  • February 15, 2025
  • 1 reply
  • 2354 views

I'm trying to configure a way for contacts to update their email address when visiting a "manage preferences" form. When a known contact visits the form, their information will pre-fill. However, if the contact were to update their email address, a new record is created versus updating their existing record. 

 

Perhaps I am completely overcomplicating this - Please let me know. I've added a section of rich text that says "Incorrect email address? Update it now." When it's clicked, the hidden field (self-service email address) would appear so the user can add a new email address. I would have an automation that would then change the data value of the primary email address field once the form is submitted. 

 

I can't seem to find a solution to this, which is making me think I'm approaching this the wrong way. Any advice is appreciated, thank you! 

 

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

Yes, you always need some JavaScript (not jQuery). That’s how you make clicking the link set a value. Like so:

 

MktoForms2 :: Switch to proxy email address

1 reply

SanfordWhiteman
Level 10
February 15, 2025

Pretty straightforward. Don’t hide/show the proxy Email field directly when the person clicks the link. Instead, update another hidden field — a Form Visibility Manager (FVM) field. This is just a string field you use for special form behaviors.

 

Then use standard Visibility Rules based on the FVM field.

Disha_Goyal6
Community Advisor
Community Advisor
February 18, 2025

Hi @sanfordwhiteman , I think we can achieve the same by using jquery.

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
February 18, 2025

Yes, you always need some JavaScript (not jQuery). That’s how you make clicking the link set a value. Like so:

 

MktoForms2 :: Switch to proxy email address