You are viewing limited content. For full access, please sign in.

Question

Question

Custom HTML Button in Form Header?

asked on January 24, 2024 • Show version history

Is it possible to place a custom HTML button inside the form header?  If so, how would I do that?

I feel like it would involve cf-formtitle and have searched the Answers site for clues, but can't find any.

Thank you for your help!

image.png

0 0

Answer

SELECTED ANSWER
replied on January 24, 2024

This will only work in the Classic Designer, but here's some Javascript that can do it: 

$(document).ready(function() {
  $('#cf-formtitle').append('<button type="button" id="customHeaderButton">Click Me!</button>');
  $('#customHeaderButton').click(function() {
    alert('Button was clicked.');
  });
});

 

1 0
replied on January 24, 2024

Muchas gracias, mi amigo!  wink

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.