Hello, I am creating a custom form where a user is required to fill out a field before clicking a save button. I want to make the button greyed out, not invisible, however I am struggling to do so. I saw on other posts I can do so with a button bar, but I only see a button block on my components list, which I tried to implement. However, despite that, the Save button is invisible until the field is filled out, not greyed out.
I looked at Greyed out button in button bar and this custom forms app, but despite have similar steps, the button remains invisible. Any suggestions would help a lot thanks!
My advise would be to have the screen called âNew Payroll Screenâ pop up as a âShow form screenâ, you probably have it set up as âShow new screenâ
If you change it to a form screen you can directly add the data to your table called âTransactionsâ and simply add an action after submit in which you set the column values to what you want. Set the text field as ârequiredâ, in this way the submit button will be greyed out until filled. And the data would be only updated after submitting.
I saw the posts on the greyed out button and the sample form app, but I could not replicate this directly and Iâm not completely sure how it works with button blocks, as they hide based on conditions. From what I could see both apps were Classic Apps, and had that setting.
It would be a nice feature for the new Glide Apps, as it seems very useful in some cases.
Hi Kev, thanks for your quick reply! I originally had this as a show form screen, but the problem is I need to update the clientâs next period starting date in the client table AND make a new row in the transactions table for the current period starting date. If I set the form screen destination to be the Transactions table, I cannot update the next payroll starting date.
For example: Greg has a current starting date of 6/1/24 in the client table. Submitting a new payroll, will make a new transaction row with this date, but I also need to update Gregâs current starting date to be updated for the next payroll period.
Do you know if there is some workaround to making a new row for the Transactions table, and updating payroll period in the Client table?
I also do unfortunately see those links were for Classic Apps not current ones, so if there is no workaround with the form screen, I will just have to deal with the save button being invisible.
This would be the best workaround. When you have the form screen open, without selecting any component, on the right column you should see this option:
I tried this, but if you are adding a row for one table, I do not believe Glide allows you to set the rows for another table. In this case, a new form would be for the Transactions table, but when I try setting the values on the submit button, I cannot choose to do so for the Client table.
Like in this case, I want to update a date for the associated client in the Client Table, but can only do so in the Transactions table since that is the formâs destination.
You would just have to find a way to create a relation/query from the Transactions table to the Client table. Which column you use depends on your structure. Then you can use that relation/query as the path to do the set column action.