Sending data to the form
After setting up the form in the personal account of CMS, it is ready to receive data. For this, you will need the marker of the created entity.
Kotlin Multiplatform
Sending data to the form
val home = AttributeValue.fromString("home")
val comment = AttributeValue.fromString("comment")
val entrance = AttributeValue.fromInt(1)
val form = FormsService.sendData(formIdentifier = "delivery") {
locale("en_US") {
put("address", home)
put("comment", comment)
put("entrance", entrance)
}
}
Swift
Sending data to the form
let home = "home"
let comment = "comment"
let entrance = 1
let entity = try await FormsService.shared.sendData(formIdentifier: "delivery") {
Locale("en_US") {
FormData(marker: "address", attribute: .init(string: home))
FormData(marker: "comment", attribute: .init(string: comment))
FormData(marker: "entrance", attribute: .init(int: entrance))
}
}
Last modified: 01 August 2025