• Resolved getaka

    (@getaka)


    Hi ODude,
    I want to copy the input of Title Field to Tag field programmatically on clicking of submit button.
    I want to add this code to Flexi Plugin. Please let me know in which flexi file to add this code.

    <script>
    document.getElementById('submit').onclick = function changeContent() {
    
    document.getElementById("tags_tag").value = document.getElementById("celeb").value;
    }
    </script>

    getElementById(“celeb”); celeb is the ID for Title field.

    The page I need help with: [log in to see the link]

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

    (@odude)

    The title field name is always same.
    name="user-submitted-title"

    Not celeb.

    Thread Starter getaka

    (@getaka)

    Corrected code:
    <script>
    document.getElementById(‘submit’).onclick = function changeContent() {

    document.getElementById(“tags_tag”).value = document.getElementByName(“user-submitted-title”).value;
    }
    </script>

    Please let me know where to paste this piece of code in flexi file, to fetch the title in tag field on click of submit button.

    Plugin Author odude

    (@odude)

    I cannot say your code is correct or not.
    But you can insert javascript to the same page where [flexi-form] shortcode is used.
    Just enclose jasvascript code below shortcode between script tag.

    Your requirement is personal, so we cannot give support on it.

    Thread Starter getaka

    (@getaka)

    Dear Odude,
    Can you do this for me. Of course, I am ready to pay for it.

    Thread Starter getaka

    (@getaka)

    I want something like this
    [flexi-gallery title=”Selena Gomez”], which fetches all the flexi posts whose title is Selena Gomez.
    Please quote [email protected]

    Plugin Author odude

    (@odude)

    We are under development of search part.
    If you wanted, I will provide you one trick. If that didn’t work for you, you may help you to hire developer for your requirement.

    At your primary gallery page, add this part ?search=keyword:selena

    You can create different link with your own values.
    I think this will be enough for you without any paid features ??

    https://getaka.co.in/gallery/?search=keyword:selena

    • This reply was modified 2 years, 11 months ago by odude.
    Thread Starter getaka

    (@getaka)

    Thanks. It’s working. The only caveat I am facing is that ?search=keyword:selena also returning posts which doesn’t have the keyword. Here is the shortcode I am using.

    <h2>Create your own Jenny Slate photo gallery</h2>
    [flexi-form title="Submit to Flexi" name="my_form" ajax="true"]
    <div class="fl-field"><label class="fl-label fl-label fl-has-text-dark" for="user-submitted-title">Name*</label><div class="fl-control"><input type="hidden" name="user-submitted-title" value="Jenny Slate" placeholder="" class="namefield"><input type="text" name="user-submitted-title" value="Jenny Slate" placeholder="" class="namefield" readonly=""></div></div>
    [flexi-form-tag type="article" title="Description" placeholder="Write few words about the celebrity (optional)"]
    [flexi-form-tag type="tag" title="Insert tag" value="Jenny Slate"]
    [flexi-form-tag type="file" title="Select file*" required="true"]
    [flexi-form-tag type="submit" name="submit" value="Submit Now"]
    (Note: * required)
    Do not remove the existing tag
    Do not upload any gross or explicit photo
    Do not upload any photo with copy rights
    Upload photos with maximum size less than 1 MB
    [/flexi-form]
    <h2>Jenny Slate - Latest Photo Gallery | User uploaded photos</h2>
    [flexi-primary ?search=keyword:Jenny Slate]

    Here is the page:
    https://getaka.co.in/movies/jenny-slate/

    • This reply was modified 2 years, 11 months ago by getaka.
    Plugin Author odude

    (@odude)

    Form code doesn’t matter.
    It will search into title & description fields as like regular search for wordpress post.
    If you use keyword as ‘abc xyz”
    It will search for both abc & xyz separately.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add the Flexi Title in the Flexi Tag field programmatically’ is closed to new replies.