HeatherBryant2
6 years agoQrew Assistant Captain
Requiring Field through Formula - URL button
Hey QB Community,
I'm looking for some help...I'm using a formula url button to allow users to submit a record while in View mode. When clicked, the formula checks a Submitted checkbox as true. I'm trying to require a numeric field to have a value if it is null when the button is pressed.
I'm looking for some help...I'm using a formula url button to allow users to submit a record while in View mode. When clicked, the formula checks a Submitted checkbox as true. I'm trying to require a numeric field to have a value if it is null when the button is pressed.
- I tried using a form rule "When [Submitted]=true and IsNull([Number]), require [Number]". The record saved without requiring [Number].
- I tried a formula in the custom data rules - If([Submitted]=true and IsNull([Number]), "Error Message.") I received the error message below when I did this.
Both options worked when I opened the record in Edit mode and manually checked the 'Submitted' checkbox, without using the button. I assume it's because the button is checking Submitted at the same time I'm wanting it to see if there is a value in Number.
An easy fix is to change the button to a multiple choice or checkbox. But I'm trying to make the button work.
This was the error message...anyone know where I can find the definition of error codes?
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<qdbapi>
<action>API_EditRecord</action>
<errcode>88</errcode>
<errtext>Custom data rule failed</errtext>
<errdetail>
Custom data rule failed: Please enter a value into the Vacant Sq Ft Data Entry field. Enter '0' if there is no vacant sq ft.
</errdetail>
<rid>7994</rid>
<num_fields_changed>0</num_fields_changed>
<update_id/>
</qdbapi>
------------------------------
Heather Bryant
------------------------------