• Resolved beng56

    (@beng56)


    Hi there,

    Following a recent topic I’ve created (https://www.ads-software.com/support/topic/generate-post-title-from-another-field/) and helped me through the autofill of post title and post tag, I’m only missing a small step to achieve my goal. Thanks again for this support.

    I just need to hide those fields (could be with css I guess). Indeed I don’t want the users to see those 2 fields. I don’t have access to the css style for those fields as the others in the forminator edition. I was trying to add directly the css in “enable custom CSS” but I didn’t manage to find the right way to call post_tag and post_title. I was thinking about something like this for the tag part but it didn’t work:

    #postdata-1-tag_post.forminator-field {
    display: none;
    }

    Obviously I could hide post_tag and post_title by simply deselecting them in the forminator edition but they wouldn’t be called or autofill.

    Thanks for helping me on that part !

    Best,

    Benoit

    PS : I’ve looked for some js or php coding but obviously it always ends up with having the field type = hidden but I don’t feel comfortable modifying those fields type, that’s why I thought about the display: none from CSS..

    EDIT :
    from what I understood, post_tag and post_title don’t have div id. I’ve been able to hide all the “post” section with : $(“#postdata-1”).css(“display”, “none”);
    But now I’m missing the post category .. I don’t know how to add the display: none to the right section without the id.

    • This topic was modified 3 years, 5 months ago by beng56.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @beng56,

    Thank you for reaching out to us.

    Please check if the following CSS helps.

    label[for*="forminator-field-post-title-postdata-1"], label[for*="forminator-field-post_tag-postdata-1"], #forminator-field-post-title-postdata-1, .select2-selection--single[role="combobox"] {
        display: none !important;
    }

    Please try add them at WP Dashboard >> Apperance >> Customize >> Additional CSS, I hope that helps.

    Best Regards,
    Nebu John

    Thread Starter beng56

    (@beng56)

    Hi,

    I had to adapt it a bit as I have now my post tag as multiple selection but thanks to your tips, I managed to adapt it.

    I mark it as resolved.

    Best regards,
    Benoit.

    Is there a similar css code i could use to hide a name field {name-3} ?
    I dont want to use visibility since i need it to be active to pass the data to stripe. The reason why i need this is simply because i cannot arrange multiple name fields the way i want, i.e. horizontally. I saw in another thread that you suggested to another user to create two different name fields so he could have them horizontally :
    https://wpmudev.com/forums/topic/forminator-pro-forminator-name-field/
    Thus i created 2 separated name fields {name-1} {name-2} for first and last names. Then i merged them in name-3. And I cannot use an hidden field because they dont appear in the stripe facturation details options.
    Thanks,
    Eric

    Hello @physiotek !

    As per the rules of the support forum here, please open a separate ticket so we can help you better. When creating the ticket, you will also have an option to pass a hidden link to the form page in question – please make sure you share it as well so we can take a look and share the appropriate code.

    Kind regards,
    Pawel

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide Post Title and Post tag in form, autofill’ is closed to new replies.