Mautic Community Forums

Form no longer editable after adding Field attributes to fields.

I have a issue with mautic form. I made a form and then attached a campaigning email to it and published both. And then I put form on website and it was working fine until I edited the form and added Field Attribute for two of the fields. When I applied, saved and closed again I edited the form but this time the edited fields are no longer editable but others are. On website the two fields I edited lost their Red Star* in label. With this whole process I never unpublished the form. Any help? Because I am a beginner in this and want to understand how it works and what precautions should I take before edit anything.

I have a issue with mautic form. I made a form and then attached a campaigning email to it and published both. And then I put form on website and it was working fine until I edited the form and added Field Attribute for two of the fields. When I applied, saved and closed again I edited the form but this time the edited fields are no longer editable but others are. On website the two fields I edited lost their Red Star* in label. With this whole process I never unpublished the form. Any help? Because I am a beginner in this and want to understand how it works and what precautions should I take before edit anything.

There are few bugs int the Form configuration UI which will be fixed with this pull request in 1.2.1:

https://github.com/mautic/mautic/pull/943

But I didn’t notice the problems you’ve described. Could you write a step by step tutorial about how to see that issue?

First Name – Field Attribute – class-inline-1
Last Name – Field Attribute – class-inline-2
So that I could apply styling on both fields to show side by side.

I can recreate the issue. I’ll fix it for the next version.

Thank you very much.

The fix is here: https://github.com/mautic/mautic/pull/1018

If you’d have a chance to test it, please, write a comment below the pull request it if works for you or not.

You can change a campaign form after it is attached to a campaign. There shouldn’t be any problem. The red star used as validation mark is implemented by CSS:

.mauticform-row.mauticform-required .mauticform-label:after {
    color: #e32;
    content: " *";
    display: inline;
}

So rather check if the attribute you’ve added didn’t mess with this CSS statement.

Thanks for your information.
I have already tried your solution by myself but never worked.
See this. When I hover over on email I can see the options to edit and also required red star on work email. (https://drive.google.com/file/d/0B7rOW3OviqtDeVhqRWJvd3lOODQ/view?usp=sharing)
And this (https://drive.google.com/file/d/0B7rOW3OviqtDa1lDclphcEhFd00/view?usp=sharing) When I hover over first name or last name then no options are showing.
(Mouse pointer not showing because of print screen command)

Could you publish what attributes have you added to those fields?

Yeah sure but first I want to ask if a campaign is attached to a form and both are published and if then I make changes to form and save it will this cause any problem? Because I did this.
I created a form with first name, last name and email. After that I published and got 2-3 testing leads. Then I created a email campaign, attached to form and sent test email to see if it is working fine and they were working fine. Now after this I opened form option from left menu on mautic, selected my form, chose edit and then added field attribute to first name and last name, Applied then saved and closed.
Now problem started on my wordpress website where I was showing that form, First name and Last name field lost their Required Red Star. I haven’t tested my form by creating any lead. Validation is working fine.