How to pass multiple field values of a table to URL

how to pass multiple field values of a table to URL
where i am able to pass a single field value{{rawValue}}/

but i want pass two field values to URL
is there any way for that to do.....?

@kabali12345 Using the URL Field formatter to do so isn't possible; however, you should be able to do so using Scripted Fields

Got it.
Thank you very much.


can you please share some more details to me

@sravya the URL Field formatters work against a single Field in a document. However, you can use Scripted Fields to do more advanced logic, including string concatenation.

can you please elaborate and show me an example

@softec17 @sravya to create a Scripted Field, you select Management -> Index Patterns

And then Scripted Fields -> Add Scripted Field

If you create a scripted field with a Type of "string", a Format of "url" and the Script of: '' + doc['geo.dest'].value + '/' + doc['geo.src'].value it'll create a URL using two fields from the document

1 Like

i followed all the steps you suggested me but i am getting an error in discover field

@softec17 that warning/error that you're seeing in Discover doesn't appear to be related to the Scripted Field, but because a shard failed when executing the query. If you remove the scripted field, do you still see the warning/error?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.