• Resolved vipteam

    (@vipteam)


    Hi Support,

    I want to enter a Subject that the visitor/user cannot change. The current options I found are: “required” and “optional”. However, I have not found options anywhere that would be something like “fixed” (unchangeable, disabled) or “hidden” (not shown in the form but coming through email).

    I’m trying to create a form that is not an ordinary contact form but a Service request. So, in this case, it is most practical to have a fixed Subject and not allow the visitor to change it.

    How can I disable changing the Subject in the form?

    If no such capability currently exists (I can’t find it), could you please add these capabilities to Forminator. In one of the future upgrades, of course.

    Thanks in advance. Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @vipteam

    I hope you’re well today!

    Do you mean “subject” as in “e-mail message” subject?

    If yes, then yes – you can do it easily. Simply edit e-mail notification(s) for the form in question and remove any variables from “Subject” field, instead putting your own “fixed” text there.

    For example, if the subject of notification is currently set like

    Hi {name-1}, welcome to {site_url}

    it would dynamically substitute name and site url with values form the form/site. But you can instead put any text without parts in curly brackets (which are variables that are replaces dynamically) and that’s it. User submitting a form will not be able to change that.

    Is that the case or am I missing the point?

    Kind regards,
    Adam

    Thread Starter vipteam

    (@vipteam)

    Hi Adam,

    OK, I think I got it all. So, instead of {subject} I can write something like Service Request (without curly brackets). I can’t check live because I’m working on a local server with XAMPP. One thing confuses me. When I open the form (as a visitor) I can delete or modify the text. Does this mean that according to the settings above, whatever the visitor types, what I have set as the default subject, in this example Service Request, will always come?

    Confusing for both me and the visitor. It would be simpler to have the possibility to completely hide the Subject field in the form. So that it is invisible to the visitor. Or that it is visible but that the Subject field cannot be edited in any way.

    There is no reason to hide the other fields, but the subject field is unique. It would be great if we had 2 options, (Hide, Show). Subject would work even when this field is “hidden”.

    Have a nice day. Regards,

    Thread Starter vipteam

    (@vipteam)

    Subject field, my settings:

    Edit Field

    LABELS
    Label: Subject
    Default Value (optional): Service request

    SETTINGS
    Require
    [X] Optional [ ] Required

    STYLING
    Additional CSS Classes: my-forminator-subject-line
    (These will be output as you see them here.)

    VISIBILITY
    Show this field if Any of the following rules match:
    Rules: Label is 129fgh921

    This way I have hidden the Subject field. The subject field is not displayed in the form and the visitor does not see it. My question is the following:

    Will the message come to me with (Subject, default value): Service request?

    In other words, the specific question is – did I just hide it in the form in this way or did I completely remove it from the form?

    For such a simple thing this VISIBILITY setting is not ok. There should be a third option, which is HIDE / SHOW without rules.

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @vipteam,

    If the purpose is solely to include it as a subject line in an email notification, it is not necessary to add a field in the form for the subject as the subject is static. You can simply configure the email notification with your desired subject line as previously suggested by Adam. It is not required to use a macro to set up the subject of the notification email.

    Or is there any specific reason that you need to configure the subject field?

    Kind Regards,
    Nebu John

    Thread Starter vipteam

    (@vipteam)

    Hi Nebu John,

    Looks like we don’t understand each other. I will try to be as simple as possible. Yes, I have a “special reason” for a Subject line. Of course, Subject is always mandatory, without it the message is spam, for me and for anti-spam filters, both. In this case:

    1. I do not use the form as a contact form. I use the form as a (pre)order form. I want my form to always come with the Subject line: Service Request. It should be static.
    2. I don’t need the notification because only I, the administrator, receive the message to a special address, something like [email protected].

    My problem is that I currently have no way to check how Forminator works live on the server. Now I’m developing a site on localhost with XAMPP. I just started using Forminator. I didn’t find anything about static subject in the Documentation. That’s why I need clarification and advice.

    What confuses me is the following:

    I enter a “static” Subject (Service Request) in the subject line. However, when I, as a visitor, fill out the form, I can change, enter a new Subject in the subject line. Forminator does not block typing. Is this a bug or normal behavior? I want the subject, only for this form, to always be static.

    If I can’t prevent this, then I want to hide the field in the form (so the visitor cannot change the default subject line) but the subject line should still be functional. I should receive an email message with the subject line that I set to be the default: Service Request.

    How can I achieve that I have a static subject? What to do next?

    Thanks in advance. Regards,

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    HI @vipteam

    Thanks for response and I think I did understand your goal quite well right from the start. Let me try to rephrase my earlier response and make it a bit more clear.

    1. You do not need to add any additional field to the form for subject.

    You can just remove it from form, no need to keep it there or set any visibility rules.

    2. Then you go to the “Email notifications” page and if there are more notifications configured than just the one that goes to the “[email protected]” – remove them; you only need this one

    3. Then edit that notification and remove whatever is set there in the Subject field; instead put your text there, like this:

    2023-01-23_12-57-28

    That’s all you need. Visitor will not be able to edit that and subject for message will be set.

    Kind regards,
    Adam

    Thread Starter vipteam

    (@vipteam)

    Hi Adam,

    Thanks for the details. Now everything is perfectly clear.

    Thanks again. Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Subject hidden’ is closed to new replies.