Jump to content

. How to get the customer "contact_uuid" from detail_cr.hmtpl - Creating a new request

Recommended Posts

Hello everyone!

I need to get the customer contact_uuid value from detail_cr.htmpl when I'm creating a new request.

The known way, using $args.customer.id returns null because the ticket is not created yet.

I know I can get the tenant value using a javascript variable "argTenantID" or "argPersistentID" to obtain the ticket persistent_id.
¿Is there any variable like those to obtain the customer ID?

I need to obtain the value in order to send it to a function defined in a personalized button in the same form, while I'm creating the request.

Best regards.

Ana KBS*


Link to post
Share on other sites


just fetch the customer after the button has been clicked. You can use jquery (which is already included in sdm), code could be:

alert("pdmqa:" + jq("[pdmqa='customer']").val());
alert("SET.customer:" + jq("[name='SET.customer']").val());


Link to post
Share on other sites

this might be caused because you have more than one SET.customer called input (like in other form which is used to create parent/child object), try to define main form in jquery selector, ex:

// not sure that main_form is a name, it can be an id, then use "#main_from" instead.

or check other inputs to confirm that problem is in wrong selection:

// check jquery .each syntax if this fails
jq("[name='SET.customer']").each(function(a, b) {
  alert(a + ":" + b.name + " @ " + b.value);


  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...