Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.