Jump to content
  • 0

graphic in header with conditional logic


lamarh
 Share

Question

I have a table of docents who are in one of two programs (art or garden). The docent logs in with authentication. After logging in, the docent sees a tabular report of all lessons they have signed up to teach. Is it possible to customize the header with javascript so it contains the graphic (logo) specific to the art or garden program?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello @lamarh,

You may test the following steps:

1) Add the field with the File data type to the table that is used for Authentication.

For example:

 AkI2EVj.png

 

2) In the DataPage Header add the image and select the File field (the 'user_image' field in my example) from the Authentication parameters as URL:

NJkXwVI.png

 

3) The parameter can be added as a string, so please add the '/' sign after the parameter name manually to render it as a File URL. 

You may want to check this article https://howto.caspio.com/parameters/displaying-parameters/

Also, you may specify the image width, height, etc.


jj4W9sO.png

As a result, you will receive the dynamic image that depends on the person logged in to the DataPage.

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...
 Share

×
×
  • Create New...