Skip to content

Instantly share code, notes, and snippets.

@hammadbinarif
Last active August 22, 2023 16:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hammadbinarif/6a3312528040f717a510c0a3d0f55df0 to your computer and use it in GitHub Desktop.
Save hammadbinarif/6a3312528040f717a510c0a3d0f55df0 to your computer and use it in GitHub Desktop.
import {PDPFieldReader} from 'PDPFieldReader'
export class PDPFieldWriter {
static set_FormFieldValue = (fieldName: string, value: string) => {
var inputField = $('Input[Title="' + fieldName + '"]');
if (inputField.length == 0) {
console.warn("Couldn't find form field " + fieldName);
return "";
}
inputField.val(value);
inputField.trigger("change")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment