Dont want to send form field values in Custom Submit action | Community
Skip to main content
Level 3
March 16, 2023
Solved

Dont want to send form field values in Custom Submit action

  • March 16, 2023
  • 1 reply
  • 1166 views

Hi All,

 

We have some form elements and we have a Custom Submit action.

 

We dont want to send some values to afdata(afbound and afunbound) parameters.

 

By default all the values are coming in afdata .

 

Thanks

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by workflowuser

what is the use case for not wanting the data in the submission?

And it is not possible to achieve your use case using OOTB submit action

1 reply

SivakumarKanoori
Community Advisor
Community Advisor
March 16, 2023

@sb2512 :

 

as a first thing , if you dont want to send the field in the afdata, for those fields dont provide the bindRef  property to that filed.

 

if that doesnot work, try below.

In your custom submit component, if you have any clientlibs or in the rules editor  check that , if your submitting data with ajax call.

e.g:

$.ajax({
url: saveUrl,
type: 'POST',
data: formData,
contentType: 'application/json',
});

you might be having some logic to build the formdata which captures all the data which we input in the form. 

you can remove the keys which you dont want from the formData.

Thanks,Siva
Sb2512Author
Level 3
March 17, 2023

Hi @sivakumarkanoori 

 

Even if we are not setting the bind Reference the value is coming under unboundReference in afdata.

Sb2512Author
Level 3
April 14, 2023

what is the use case for not wanting the data in the submission?

And it is not possible to achieve your use case using OOTB submit action


We have some confidential fields like bank account Number which we dont want to send on the network Call so we created a Encrypted hidden field where we are encrypting bank account number and sending to the network call but the plain text account number we want to restrict on form submit.