I have a form field that users fill with a YouTube URL, how can I copy the code after ?v= to another field so that I may use it later as a param?

  • reddittikihut
    Asked on December 29, 2020 at 11:00 PM

    Hello again,

    I have a form field that users fill with a YouTube URL, how can I copy the code after ?v= to another field so that I may use that new field to pass as a parameter later?


    All YouTube links have https://www.youtube.com/watch?v= then the video ID like this: https://www.youtube.com/watch?v=UrGw_cOgwa8

    How can I copy the code after ?v= which would UrGw_cOgwa8 into another form field so that can use that field within an email?

    In essence I am creating a new link and I would like to use the above as a parameter in the email I send.


    Thank you again for being so AWESOME!!



  • Vick_W Jotform Support
    Replied on December 29, 2020 at 11:08 PM

    Hi there,

    You can copy the code after the https://www.youtube.com/watch?v= using our Substring widget. You can check it on the link below.

    https://www.jotform.com/widgets/substring

    Please try it and let us know if you have any questions or concerns.

    Thanks

  • reddittikihut
    Replied on December 30, 2020 at 12:38 AM

    Thank you very much. I will check it out!.