If/Then Help - Unforeseen number populating
Hello!
I've got an API button that when triggered, creates a new record with some preset information pulled in.
That all works except in the instances where I need some fields to be blank.
I thought I could use an If/Then statement to complete data or stay blank when necessary. for exp,
If( [Renewed Parking rent] >0, [Renewed Parking rent] ), [...]
I assumed if I left that as the statement, nothing would happen in the even of a $0 amount. The new record's field would be intentionally blank.
Instead strangely, when data should be blank (whether the if/then sample above is blank or null), it populates a crazy amount like $25,000... It's always roughly $2#,###.
I've attached some of the screenshots of the data output (currency fields) and formula.
The text fields populate correctly if for example, [Renewal OutcomeStorage] (currency) =0 so the output for [Storage] = No (row 32) but [Storage Rent] (currency) should be blank but instead reflects $24,302.00.
Any ideas about what I'm doing wrong?
Thank you for your help,
Liz
What if you exclude the field reference line completely from the URL if there is no data in [Renewal Outcome Parking Rent]?
& If([Renewal Outcome Parking Rent]>0, "&_fid_176=" & [Renewal Outcome Parking Rent], "")