Problem in fetching custom dialogue content

IMG_20200401_181011 IMG_20200401_181031

On clicking assign button unable to save the assigned data . Unable to write javascript code. Help!!