Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Portal Value on a new record overridden by a zero

Featured Replies

I have a fairly simple portal that the first field is a quantity. When I enter a number in a new row and tab to the second field the number is reset back to zero. If I click back in the field and override the zero it is fine. It is like when I tab to the next field that the record is created and then it sets a default value.

I have checked and there is no script triggers on the portal, the quantity field

There is no default value for the database field.

Scratching my head.

Thanks

Thom

you can do a scipt trigger to commint upon entering the first field that should force the creation of the record, or a commit trigger after you enter a number.

I would like to see a stripped down sample of the database to give you a better solution.

Script triggers are NOT the solution to EVERY problem. Sheesh.

Work out why the field is changing back to zero. It should not be doing that.

  • Author

If I open Script Debugger and then tab out of the field then nothing is running and the field returns to 0. Any other trouble shooting you can think of?

I'd start with checking the relationship.

If you are sure that the field does not have auto-enter data of 0 or auto-enter calculation then it might be field-level formatting.

Inspector > Data tab and Data Formatting. If the number format is anything but 'as entered' or default (set to Boolean for example), this could explain it. Are you sure it is the correct field? Please don't take that wrong ... sometimes I get tripped on this particularly if I've copied another field and then re-specified it (sometimes I forget). :)

It is strange indeed. As Vaughan says, even if a related record, if User is able to enter the field and change the number, the number should stick.

If I open Script Debugger and then tab out of the field then nothing is running and the field returns to 0. Any other trouble shooting you can think of?

Zip your file and post it to the forums.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.