March 7, 20169 yr Hello, i have a custom dialog, i need to put 4 character and then click ok could i make the custom dialog box validate automatically if i put 4 characters ? Thanks you
March 7, 20169 yr if you need to validate data before processing i would not use a custom dialog. I would use a popover and build my own custom dialog because with the popover button you have greater ability to customize the user experience. Edited March 7, 20169 yr by Kris M
March 7, 20169 yr Author Hi Kris M, thanks you for the answer, i try right now with the popover but i can't use a script with it ? right now with dialog box it s working like this i click to a "button x" > script load captcha picture from webviewer >show it bigger> open dialog box> I put the character > I click ok >script put it in the field captcha of webviewer> script simulate click on "validate" of the webviewer > done what i would like is that the click on OK of dialog box will be done automatically if i put 4 characters. you think it could work with popover ? thanks you
March 7, 20169 yr 3 hours ago, ibobo said: could i make the custom dialog box validate automatically if i put 4 characters ? Yes, of course you can. There are several ways you could set this up, depending on what you want to happen in each case. Here's a simple example: ... If [ Get ( LastMessageChoice ) = 1] If [ Length ( YourTable::UserInput ) = 4 ] # PROCEED Else # ERROR End If End If ...
March 7, 20169 yr Author 5 hours ago, comment said: Yes, of course you can. There are several ways you could set this up, depending on what you want to happen in each case. Here's a simple example: ... If [ Get ( LastMessageChoice ) = 1] If [ Length ( YourTable::UserInput ) = 4 ] # PROCEED Else # ERROR End If End If ... Thanks you Comment, it works but i still need to click on "OK" button, what i would like is that it doing it, it self since i put 4 character, to avoid the click with the mouse. This example have nothing to do with filemaker but just for understand : on google.com you dont need to click on "research" button, it doing it self since i writing something in safari or firefox.
March 7, 20169 yr 9 minutes ago, ibobo said: i still need to click on "OK" button, what i would like is that it doing it, it self since i put 4 character, to avoid the click with the mouse. You cannot do that with custom dialog. Once you have invoked a custom dialog, it will stay up until you click one of the buttons (or press the equivalent key). You can do that by having the user type directly into a field, and using a script triggered OnObjectKeystroke.
March 8, 20169 yr Author Hello, i tried yesterday during few hours to make it work, and i couldn't, maybe my skills is not enough ><
March 8, 20169 yr Here's a very simple example to get your started. In fact it's too simple, because it counts navigational keystrokes such as Backspace or Enter as characters. OnObjKeystroke.fp7
March 8, 20169 yr On second thought, this might be much better suited to your purpose: OnObjModify.fp7 Edited March 8, 20169 yr by comment
Create an account or sign in to comment