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

Question

Question

Set Field to either Yes or No based on document name

asked on November 25, 2014

Looking for the best way to accomplish the following.

 

I am using quickfield to import a bunch of images,  One of my field is whether this image is the Primary Image.  The field has a dropdown list associated with it, with values of Yes or No.   Each image is named with the ParcelID associated with the image,  there could be multiple images for a Parcel ID, in this case a (X) where X is the index of the image.

example

9876541.jpg

9876541 (1).jpg

 

I would like the first image to have the Primary Image field set to Yes and the second image to have the Primary Image set to No.

Basically any image the has a (X) in the name should be set to No in the primary image field.

 

Is the only way to accomplish this with a custom process?  

 

0 0

Replies

replied on November 25, 2014

you can use a conditional in the page processing, and that will actually be able to test the "%(name)" token if it contains that ending you are looking for, then change a token you would have for the field value

0 0
replied on November 25, 2014

It looks  like I don't hae the conditional addon.   I did get around it by doing this,  little hokey but it worked.

 

I added a Assign Token Value and set the token to a Value if '(' was found, no result if not found.

 

Then I added a 2 substitution 

Substitution 1:  if '(' was found replaced the token value with 'No'

Substitution 2:  if '(' not found then replaced the token value with 'Yes'

 

It got the job done

 

Thanks for you help.

 

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

Sign in to reply to this post.