hello there,
i have a blog website with about 10 authors, and i'm creating a contact form to be placed on the bottom of each blog item, near the "about the author" box. that form will be used to contact the author of the currently-viewed article.
i want to use 1 form for all the authors - and set some values based on to HTML elements in the page: the author's name & the author's email.
so i've created some hidden fields and custom JS to catch these values - and i'm using them in the email actions - to decide where to send the email and which name to use.
but - i also want to change the form's title & intro-text based on that information. so that the form will display different title & intro-text based on the author of the currently-viewed article.
i was thinking to create some custom HTML element, 1 for each author, and then hide/show them based on the content of the hidden field with the author's name. but the hidden fields in CF does not have any options for setting events.
the solution to this seemes to be using regular fields instead of hidden fields, and hidding them "manualy". but i wanted to ask if there is maybe a better way which i am not considering?
thank you very much
yorai
i have a blog website with about 10 authors, and i'm creating a contact form to be placed on the bottom of each blog item, near the "about the author" box. that form will be used to contact the author of the currently-viewed article.
i want to use 1 form for all the authors - and set some values based on to HTML elements in the page: the author's name & the author's email.
so i've created some hidden fields and custom JS to catch these values - and i'm using them in the email actions - to decide where to send the email and which name to use.
but - i also want to change the form's title & intro-text based on that information. so that the form will display different title & intro-text based on the author of the currently-viewed article.
i was thinking to create some custom HTML element, 1 for each author, and then hide/show them based on the content of the hidden field with the author's name. but the hidden fields in CF does not have any options for setting events.
the solution to this seemes to be using regular fields instead of hidden fields, and hidding them "manualy". but i wanted to ask if there is maybe a better way which i am not considering?
thank you very much
yorai