Forum Academy Marketplace Showcase Pricing Features

Contracts Maker

i am making a thing which create contracts with values by assigned by user like quantity and stuff . how can i make it . BTW I am Beginner

Hey @muhammadsaboor119 :wave:

Thanks for the post and welcome to Bubble!

If I understand correctly, you’re making contracts where the user can customize the contract or values accordingly?

Here’s how I might tackle it: You might have a ‘Contract’ data type and a ‘Contract Item’ (or something similar) data type. The contract will be the parent/main record, but the contract item data type will allow users to customize sections of the contract accordingly. While I’m not sure what sort of customization you might need, you could build the ability for each ‘Contract Item’ to have a type which defines whether its a field, text section, etc and you would simply add the fields necessary to support each section that might need to be represented by a Contract item. For instance, you might have fields like Title, Description, Value, Sort order (could be used to define where this appears on the contract), and more.

To display the contract, you might use a repeating group to display the contract items associated with a particular contract, sorted by their sort order. And, the repeating group could display each contract item differently based on it’s type.

There’s probably a few different ways you could go about doing this, but that’s how I’d start I think! Give it a try and absolutely feel free to reach out to us at [email protected] with any additional questions.

1 Like

Thank u Soo much man

Now my contracts are shown on Index page and i also have a profile page , i want to show the contracts that r made by the user itself on his profile page so that he can delete it ?? How can i do that and btw thanks and sorry for bad english…

Good question @muhammadsaboor119!

This can be done a couple of ways! The simplest is probably to use a repeating group on the profile page where you do a search for contracts who’s creator = current user.

Here’s the manual entry on how to do that including a quick tip video → Data Sources - Bubble Docs

Give it a look and don’t hesitate to reach out if we can assist with anything else.

1 Like


Did this but still not working !! BTW Thanks for Answering

Thanks Got It . But can u tell me how can i make a search box which will searh from my contract list’s Contracts Name and only displays that contracts which contains wording from Search Box , Again , Thanks Alot

Nice work with getting this up and running @muhammadsaboor119

For this, there are a couple of ways to do it. Many users have found success with one of the Search and Autocorrect plugins in the marketplace. These allow you to type a value and it’ll find a list of contracts that match the value. And, the reason people like it is it’s fast, case-insensitive and can even handle some scenarios where people accidentally enter a typo of some kind.

That being said, if you wanted to build this in a simple way, you might simply use a text input as your search input. In your RG source, you’d add a constraint for name contains text input’s value. And, then you’d want to check the ‘ignore empty constraints’ checkbox.

Basically, this tells Bubble to do a search without that constraint UNLESS there’s something typed in that input. Once something’s typed, it should redo the search but only show values where the name contains whatever is typed in the input.

Give it a try and keep up the progress! We’re here to help if anything else comes up. [email protected]

1 Like