You are viewing limited content. For full access, please sign in.

Question

Question

append domain to username

asked on November 25, 2015 Show version history

We use named users, but my lookup database (that fills a hidden field) only supplies the username without the domain. Do you know if there is there a way to append 'domain\' after the lookup is complete so that I can use the variable to assign a user task?

I appreciate the help. Thank you!

0 0

Answer

SELECTED ANSWER
replied on November 25, 2015 Show version history

From your question, I'm going to assume you have a question regarding a Forms issue. If so, then yes. You should be able to do something like:

$(document).ready(function() {
     $(document).on('change', '[hidden username field] input.singleline', function() {
          $(this).val('domain\\' + this.value);
     });
});

Put that in your "CSS and Javascript">"Javascript" section.

0 0
replied on November 25, 2015

Hallelujah, Chris, Thank You! (Yes, it was a Forms issue; sorry 'bout that.)

0 0

Replies

replied on November 25, 2015

Are you filling this out using workflow or the dynamic fields for the template?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.