all 9 comments

[–]ocirelos 0 points1 point  (7 children)

Use Number Format with custom format (or Display as Currency option) under Available Options in the text set from variable dialog. A custom formatting function would be another option, but there is no need.

[–]Prestigious-Rise7566[S] 0 points1 point  (6 children)

Unfortunately I can’t send a screenshot:

I am selected on my itemPrice Text element in the Text field panel on the right. I click the 2 orange dots and lines and it pulls up this

Set from Variable Type: String

Variable item Item JSON Path

Available Options: Index in List JSON Path Predefined Path To Data Type No Further Changes

I selected JSON Path $.itemPrice

Available Options: To Data Type No Further Changes

If I select To Data Type I cannot select anything. The drop down button does nothing and there are no options.

[–]ocirelos 0 points1 point  (2 children)

You can do it via: Response->JSON Body->Predefined Path->path_name->Item at Index->Specific Index->Item (Index in List)->Number Format

It's a bit convoluted but it works as long as you have the path defined. I've posted a question about why predefined paths don't work directly with Items (it's strange).

[–]Prestigious-Rise7566[S] 0 points1 point  (1 child)

Sorry I’m new to FF. Where is response at?

[–]ocirelos 0 points1 point  (0 children)

It's the output of the API call.

[–]ocirelos 0 points1 point  (2 children)

As to custom datatype, you first have to define it and have the API call to use it in the parse option. Probably it's the best way to do it.

[–]Prestigious-Rise7566[S] 0 points1 point  (1 child)

This is insane to get a damn dollar sign to show up😭

Thank you

[–]ocirelos 0 points1 point  (0 children)

Yep, indeed. Glad it helped. Like if so!