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.

Help with button as input data to field

Featured Replies

Please can you help?

I am trying to use a button to enter data into a field.

I have a field name survey type

I have three buttons survey 1, survey 2, survey 3, if I press survey 3 then I want that to be the data entered into the field.

How can this be done any help would be grateful.

Perhaps just attach a value list of survey types to the field ?

  • Author

Hello bcooney

Thank you but I figured it out at 4:30 this morning 

I attached a script trigger with the follow script if anyone else comes up with the same problem.

 

 

Screenshot 2020-02-28 at 08.06.53.png

I don't see what this answer has to do with your question.

Since we don't know what problem this is meant to solve, it's hard to express an opinion. However, there are some things that jump out immediately: 

1. Your first case will always be executed. The expression GetField ( ... ) will return an error and the error will evaluate to true in a Boolean test.

2. For mutually exclusive choices, you should be using a single If block with Else If and Else branching - not multiple separate If blocks.

3. The entire thing could be reduced to a single Set Field step. 

4. It would probably be simpler to make the target field auto-enter the intended value.

 

  • Author

Hello Comment

Im sorry I am a noobie I am still learning would you be so kind and show me the single Set Field Step please I would be so grateful.

???

I am guessing it could look like:

Set Field [ T40_Analytical::Due_Date ; Get ( CurrentDate ) + If ( T40_Analytical::Turnaround = "24 hours" ; 1 ; GetAsNumber ( T40_Analytical::Turnaround ) ) ]

This is assuming that the Turnaround field will contain either the text "24 hours" or a text in the format of "N days". In the former case, the calculation will add 1 day to the current date. In the latter case, the calculation will extract the N value and add it to the current date. As I mentioned earlier, you could use the same formula for auto-entering a calculated value into the Due_Date field, with no need for a script.

 

  • Author

WOW thank you very much that worked a treat.

Thank you for your help much appreciated. 

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.