June 27, 200520 yr I'd like to have a script that says "File Attached" or "Issued", etc. in red text when certain fields are occupied and not show any text when there is nothing in there. So basically if a container has a file in it you would see text that says "File Attached" but if no file is in it, there would be no text. Or if a field has data in it there will be text, no data no text. Has anyone had any experience in doing this type of script? THANK YOU in advance to anyone who responds!!!
June 27, 200520 yr Where would you like this text to be? If you want a separate field to show "File Attached" then you can just use a calculation field instead of a script. if(not isempty(container field;"File Attached";"")
June 27, 200520 yr Michael has it, except for a missing close parenthesis after container field. You probably do not need the 'else' null ("") result either.
July 7, 200520 yr Author Thanks guys! I keep trying it but I get "too many paramaters" error message. here is what I'm using: if(not isempty("Attachment";"File Attached") The field is titled "Attachment"...am I doing something wrong?
July 7, 200520 yr Remove quotes around the field name, so that it is not interpreted as text, and put a closing parenthesis after Attachment.
July 7, 200520 yr Author Hey I had one more question on this....I know I've seen this done (sorta) on a filemaker pro 7 sample db. Is there a way to say 'how many' records/attachments,etc (I'm using portals for all these). so for example if there was 5 attachments it would say "5 Attachments", 1 attachment "1 Attachment", etc. Thanks for any ideas!!!
July 7, 200520 yr You mean Count(relationship::containerfield) ? I have not tried that with a container field, but it might work.
July 11, 200520 yr Author You mean Count(relationship::containerfield) ? I have not tried that with a container field, but it might work. Worked great! Thanks! If anyone is curious you have to put this in a seperate field (not in the same one talked about earlier in this thread).
Create an account or sign in to comment