Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

set hidden custom field value using url param

Elli Scharlin November 18, 2020

I have a link to my portal in my website, I am fully able to customize the href that is being forwarded to the portal. I want to pass a url parameter to give value to a custom field that is hidden from the request view (the field is either added and hidden with a value that could ideally be changed by the param in the url OR not added as a field to the request type and just written to if it works that way).

Imagine we have

https://...PORTAL-LINK.../...?customfield_10050=Elli&customfield_10051=123

Let's say that customfield_10050 is something called Name and it is not a hidden field on the request. The request form now has the Name field filled in with 'Elli'.

Now, imagine that customfield_10051 is a field called Age, and it is not polite to show the age so we are hiding this field on the request, (in order to hide a field you must put in a value for that field. I put in 0 as the required value), We have the ability to pass it in the url so that the user doesn't have an actual block in the form called 'Age' and see that Elli is 123. It would be information only the agent could see on the support desk ticket view.

 

When I test this whole thing out, the ticket that gets created shows that Age is 0 which would mean that the param does not work to write over the existing information (or that I am writing it wrong). 

 

The other option I explored is not including the field (Age) in the request/form at all, and just writing to it from the url anyway. 

 

I was also unable to get this to work. 

 

There was one test I conducted where this hidden parameter successfully was set by my url parameters, but I am unsure what was different about that test (and cannot seem to recreate it) and am hoping for some clarity.

 

Thank you in advance!

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events