• Resolved mrpetreli

    (@mrpetreli)


    Hi Guys

    How would I return a substring from a string in field value into a new field?

    Delimiter is coma , .. so return string before comma

    EG
    #Fieldname1 contains string “I need to do this, but don’t know how”
    Return substring “I need to do this” into #Fieldname2

    Its probably a little javascript but I’m not too familiar with that.

    Thanks Guys

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello,

    You simply should insert a calculated field in the form, and enter as its equation the following piece of code:

    (function(){
    return (new String(fieldname1)).split(',')[0];
    })()

    If you need additional help implementing your project, I can offer you a custom coding service from my private website:

    https://cff.dwbooster.com/customization

    Best regards.

    Thread Starter mrpetreli

    (@mrpetreli)

    Thank you

    You do a brilliant job and have used your custom code services which I can only strongly recommend.

    Great service…great plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get substring before character’ is closed to new replies.