Update appform file function to accept value