How to Add Metadata Number With Decimals

Post Reply
GSBSwitch1
Member
Posts: 25
Joined: Thu Jan 07, 2016 8:42 pm

How to Add Metadata Number With Decimals

Post by GSBSwitch1 »

I am looking to add a metadata variable upon a Switch Submit Point that has decimals. Currently when the option is selected as a number, it only allows for whole numbers. I am looking to use this value as a variable set within a Pitstop Action which would variable change the width and height of an element being adding to a PDF document.

If the metadata element is set to Variable Text, then I can't pull the variable into the numeric field within PitStop, and if I change the variable element to a number, then I can't add decimal places.

--Evan
User avatar
magnussandstrom
Advanced member
Posts: 345
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: How to Add Metadata Number With Decimals

Post by magnussandstrom »

Hi Evan, I recently made a flow where the user can choose spine width in the Submit Point (Data format: ^[1-9]\d*(\.\d+)?$). I then use this value in my Pitstop Variable Set as Text with variables / Length / Millimetres and choose the variable from the submit point. This is working with decimals.
Post Reply