cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create custom field with URL?

908

Hello Everybody,

I have a question about custom fields in SAP CPQ. I know how to create this type of field, e.g. in Quotations. However, I received a question from a customer if it is possible to add a specific hyperlink in these custom fields.

Can you suggest how it is possible to add hyperlinks in custom fields?

Accepted Solutions (0)

Answers (3)

Answers (3)

Halser_T
Explorer
0 Likes

Hey guys, 

create a QCF with type Freeform and set it to non-editable. Via script  you can insert the URL, e.g. use event on quote created

urltag = "<a href=\"https://google.de\">Hier steht anstatt Text eine URL</a>"

context.Quote["QuoteCustomFieldName"] = urltag

BR,

Tobias

Halser_T_0-1770025127460.png

 

patrick_latour3
Explorer
0 Likes

Hi Pawel,

You will need to update your responsive template to allow links and display it as HTML and not text.

Good luck!

Yogananda
Product and Topic Expert
Product and Topic Expert
0 Likes

pawel-v

Add HTML Tag while passing the string value through script