Last active
August 22, 2023 16:52
-
-
Save hammadbinarif/6a3312528040f717a510c0a3d0f55df0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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