Get the text returned of dialog instead of the whole result