You can import this file : https://www.getpostman.com/collections/ab68a847d37cdf288f8d
and below script where request data as JSON works with dots
var data = pm.response.json()
var formDataKey = data.form.name
var formDataValue = data.form.message
console.log(formDataKey + "\n" + formDataValue)
Updating the post @farhanhasanali you can use pm.expect and other test script examples to test the value.
var data = pm.response.json()
var formDataKey = data.form.name
var formDataValue = data.form.message
console.log(formDataKey + "\n" + formDataValue)
pm.test("Request body to have form Data", function () {
pm.expect(data.form.name).to.be.a("number").and.is.not.null.and.to.not.be.undefined.and.is.not.empty
pm.expect(data.form.value).to.be.a("string").and.is.not.null
});
The working (I have converted the name to int later because accepts the value in text):

I hope this helps ![]()