• Resolved Carsten Lund

    (@carsten-lund)


    Hi there, I want to simplify the process of adding a post to the gallery, and I want to remove some of the shortcodes from the submission form, category, tag, descripton, and even the required title.

    But if I delete any of the shortcodes below, the submission form is not working?
    How do I achieve a form with only these three elements:

    Select file
    Choose archive
    Submit

    Regards

    [flexi-form class=”pure-form pure-form-stacked” title=”Submit to Flexi” name=”my_form” ajax=”true”]
    [flexi-form-tag type=”post_title” title=”Title” value=”” placeholder=”main title” required=”true”]
    [flexi-form-tag type=”category” title=”Select category”]
    [flexi-form-tag type=”tag” title=”Insert tag”]
    [flexi-form-tag type=”article” title=”Description” placeholder=”Content”]
    [flexi-form-tag type=”file” title=”Select file” required=”true”]
    [flexi-form-tag type=”submit” name=”submit” value=”Submit Now”]
    [/flexi-form]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author odude

    (@odude)

    You need to have title field as required field.

    If any how you need to remove it,
    Make hidden input filed using shortcode as same name of title field. Keep some default value.

    [flexi-form-tag type="other" new_type="hidden" name="post_title" value="no title"]

    https://odude.com/docs/flexi-gallery/shortcode/flexi-form/

    [flexi-form title="information" name="my_form" ajax="true"]
       [flexi-form-tag type="post_title" title="Title"]
       [flexi-form-tag type="submit" name="submit" value="Submit Now"]
    [/flexi-form]
    • This reply was modified 4 years, 8 months ago by odude.
    Thread Starter Carsten Lund

    (@carsten-lund)

    Thanks, obviously I also need to ad a select file shortcode, to choose an image from archive.
    But I can’t just ad this [flexi-form-tag type=”file” title=”Select file” required=”true”] to the form, which creates an Invalid Form tag?

    [flexi-form title="information" name="my_form" ajax="true"]
       [flexi-form-tag type="post_title" title="Title"]
     [flexi-form-tag type=”file” title=”Select file” required=”true”] 
       [flexi-form-tag type="submit" name="submit" value="Submit Now"]
    [/flexi-form]
    Plugin Author odude

    (@odude)

    Check inverted commas. "....." not “…”

    Do use guten block editor for your basic requirements.

    Thread Starter Carsten Lund

    (@carsten-lund)

    oh, wrong shortcode, it works with [flexi-form-tag type="file" title="Select file"]

    Thread Starter Carsten Lund

    (@carsten-lund)

    On more clarification about hidden fields.

    You wrote:

    You need to have title field as required field.

    But does this mean that I can hide it with this code:

    If any how you need to remove it,
    Make hidden input filed using shortcode as same name of title field. Keep some default value.

    [flexi-form-tag type="other" new_type="hidden" name="post_title" value="no title"]

    Plugin Author odude

    (@odude)

    Yes, you can hide post_title but it is logically actually present along with the form as hidden element because it is required to have some values.

    In short , you can achive to have only file submission field.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove shortcodes from Submission form’ is closed to new replies.