I'm having trouble with an if..then in a custom calculated form.
Background: We have a pull down field to indicate the status of results. (In progress, posted, updated, N/A). The default is in progress. We also had a date field that would show if posted or updated was selected and the user would enter the date. We really wanted the date to autopopulate the date to 'today' so that we can know when new things are posted or updated and didn't want users to backdate. So we created a new field to do a calculation. Since we had the previous field that had some dates, we had to include that too so that we kept correct dates for things already posted. Below is the calculation we came up with:
IF(ISBLANK(Results Posted Date),IF(Results="Posted"||(Results)="Updated",IF(ISBLANK(Results Date),$$NOW,Results Date),""),Results Posted Date)
Results posted date is the new calculated field and resuts date is the previous field where they had put it in themselves.
This works for some combinations but if you go from Posted to Updated, it doesn't update to the current date. we really want it to change to the current date when status goes to 'updated' from 'posted'. Any suggestions on how we need to alter our syntax?
Thanks
Heather