You are viewing limited content. For full access, please sign in.

Question

Question

Using Regular Expression with Forms

asked on January 7, 2014

So I'm trying to Parse out the First intial of the Last name to put documents into the proper folder structure...can someone tell me how to do this in Forms Process Modeler?  My folder structure is setup that if the last name is Foxhoven, it goes to the F folder, Smith to the S folder and so on.  I'm using the Save to Repository Service Task and trying to use a Regular Expression in my Repository Path so that when I capture the Last Name from the Form...it will send it to the proper letter folder first.

 

I tried using the Regular Expression from Workflow, but it didn't work.

 \Statements of Financial Interest\{/dataset/Last#<\w>#}\{/dataset/Last}\{/dataset/First1} {/dataset/Middle1}

0 0

Answers

APPROVED ANSWER
replied on January 7, 2014

This functionality is not available in the Process Modeler. Variables use xPath notation and you don't have the ability to perform functions on the values they contain. The most straightforward approach involves Workflow correctly routing these documents after Forms sends them to the repository.

 

It is possible for Forms to do this with some JavaScript in the Form Designer (and we can talk about that approach if you're interested), but using Workflow in this case is a simpler solution.

3 0
SELECTED ANSWER
replied on January 7, 2014

I am not sure you can do it like that, instead, i recommend you try one of the two things:

 

  1. store the document to a central location, then have workflow move it
  2. have hidden fields on the form that you update with javascript so that you can use those tokens to have the folder structure you want
2 0

Replies

replied on September 2, 2020

I am curious, has the been updated with Forms?  I would like to be able to do this in forms without having to do a workflow, if possible now. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.