Need help: In Enabling disabling checkbox in a native form based on some condition in system

Hi guys,

I have a Bill redeem table, Which has Redeem Checkbox

The user first has to enter the bill amount–>

Then the system should query and check wether the user has points available that he can redeem (From SameTable)

→ if points are available then show the Redeem Checkbox

Else dont show it.

Then he will enable the redeem checkbox and Save the data and rest of the calculations will happen

Not able to get an idea of how can I make this flow. I am able to add the bill amount and save it. But in the form itself how can I enable or disable the redeem checkbox based on points availability ?

Thank you in advance for your help.

Regards,
Dilip

You’ll need to do a helper table and on submit use an add row action.

Make a table with user specific columns for data entry and then a detail page (rather than a form) to show that table. Since you are now working directly with a table you can add a lot more functionality. You can make the detail page look like a form by adding your own submit button and after the add row action just clear out all the data you entered in this helper table.

Hi @DarrenHumphries ,

thank you for replying. let me try this approach.

I’ll follow some available tutorials for this. Basically it’s to use custom forms right?

Thank you for your reply.

Regards,
Dilip

Yep

1 Like