May 2, 201213 yr I have a strict validation set up a that tells the user he cannot change that field. However, the Validation message comes up wiht two buttons - 'Revert Field' and 'OK'. 'OK' does nothing and only the 'Revert Field' should be visible and selectable. Is there any way to get rid of the 'OK' button? Thanks so much and have a great day!
May 2, 201213 yr OK does do something: it returns the user to the field and allows them to change the value to something else. There is no way to modify the dialog. However the new onValidate script trigger in FMP 12 lets you create a custom dialog that gets displayed before the native dialog.
May 2, 201213 yr If the field cannot be modified then why not restrict the access to the field instead? Personally I don't use validation on fields - always by script!
May 2, 201213 yr Author Nice thinking. Script trigger on Validate; Undo Commit Records Works nicely. BTW, field access is necessary for drop down list in order to navigate through layouts, but text inside field (From Value list) cannot be modified as that points the script to the right layout via LAyout by calculation. Thanks again.
Create an account or sign in to comment