I am working on a scenario where I need to set a default value for a TextField and need to make it clickable as it is a link to a website.
I know that a text field descriptor can be used to add a clickable link in the descriptor field but I don't need it in the descriptor. I need the link and the descriptor both with separate texts. Is there any way I could populate the link as the default value in the text field and whenever the screen appears, it shows the default value and that default link is clickable as well?
Is there any other CustomField that can do this kind of stuff if Text Field does not support it?
Hi @Jamshaid -
There is a URL Field custom field type that might do what you want?
And you can set a default value for these types of fields.
Hi @Darryl Lee
Can I make it clickable and pre-populate the value?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, sure! Here's the official documentation, which I highly recommend reading in full, as you want to be careful not to create too many custom fields:
You would be setting up a new Custom Field of type URL, and then setting the default value in the context for that field. There's details on that here:
Configuring custom field contexts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Darryl Lee
Hi
I have created a URL Field but the value is not clickable. I have setup the value using a script through script runner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jamshaid -
I see in your other question that when you set the value you include HTML with the <a href> anchor tags. I'm pretty sure you should only be setting the URL as the value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.