We have a custom submit button which has additional properties(ex:PdfTemplate).

enter image description here

While trying to fetch the field values on the submit action(using formsubmitcontext.fields) I am able to get the field values of all the other fields in the form , except the submit button field. Hence I am not able to fetch the value selected on the "Pdf Template" property in my submit context.

Can someone throw some light on this behavior?

Thanks in advance!

enter image description here

1 Answer 1


On the custom submit button you will get value of forms fields and you will not get information of pdf template field as this is property of form.

If you want to get pdf template value then create this as a hidden field and then you will get value of pdf template.

  • Hi.. Many thanks for the response. Do you mean the properties of the "Submit Button field" be considered as the properties of the form? In other words, won't the submit button be treated as a form field?
    – iMathi
    Sep 6, 2021 at 12:04
  • "pdf template" is a property of the "custom submit button", so you will not get as a form field Sep 6, 2021 at 12:39
  • Thanks again for the response. Please ignore the PDFTemplate(that I just brought to get it as an example) and I am sorry If I was not clear on my query. My query was, while the formsubmitcontext.fields bringing the details/ values of all the other fields of the form(ex: single line text, checkbox etc.) it is not bringing the submit button to this collection. I am just curious on how to get the details (be it a css class / Label / or any OOTB properties) of submit button in the code while extending the submit action.
    – iMathi
    Sep 6, 2021 at 14:08
  • Thanks, @iMathi for explaining, I am more curious to know that why you want to get "css class / Label" on submit button? Sep 6, 2021 at 14:50
  • Its again an example, I quoted. For instance, If I have a logic to be written in the backend based on the cssclass chosen in the Submit button. All I wanted to know is why the formsubmitcontext.fields is not considering the submit button as a field and render its field values.
    – iMathi
    Sep 6, 2021 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.