Jump to content
  • 0

Conditional actions based on a results field - query


Loynava

Question

Hi,

I I would like to know if it is possible within caspio when having queried a table

and then based on return status of the results page (record found or not found)

to display

either

a message e.g not available

or

a message "available" plus a button to access a reservations data page.

I just need to know if this is possible and if any hints to point me in right direction or am I wasting my time.

Regards

Derek

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi Derek,

What you'd like to do is possible. The brief steps are as follows. Please first edit Localization of your DataPage, go to the Settings screen and find item # 351 - "No records found." from the Results page >> Messages category. Enable custom text, use "Not available" and wrap the message with a div tag with a specific ID.

Then you can come back and edit your Report DataPage, use Javascript to detect if the div with that specific ID can be found or not. If not, then hides the results table and display the "available" message accordingly.

Hope this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...