April 22, 200520 yr Hey guys, i am using a portal for data entry. each line item that is added gets validated as you leave the field be a script. at the end of the script i have go to layout origianl layout so that my users end up where they stated. the problem is that they end up at the wrong layout. it ends up at a layout that directly shows the contents of the portal instead of the original layout which displays the portal. i have also tried passing get(layoutname) into the validation script as it runs. it also passes the name of the layout that directly shows the line items instead of the invoice layout that shows line items in a portal. any ideas? to make matters worse this script has the ability to run multiple instances of itself. everything works perfectly except the above problem. HELP Anthony
April 22, 200520 yr One way to ensure this is to make the button that turns you to the scripted validation, grap the layout number as a scriptparamter ...it is so that Go To Layout beyond the particular layouts lets you go to layout numbers or names.... That being said would I strongly suggest that validations as such uses the build in fieldlevel validation, which also can be made conditional taking the records other fields values or lack of into consideration. This makes you stay in the original layout! --sd
Create an account or sign in to comment