Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8576931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:02:35+00:00 2026-06-11T20:02:35+00:00

I am using the star rating plugin and i want to set the value

  • 0

I am using the star rating plugin and i want to set the value of data-rateit-readonly based on certain condition i.e

  data-rateit-readonly="@Request.IsAuthenticated?(@Model.HasRatedOnAccuracy?true:false):true"

but it gives me

data-rateit-readonly="True?(False?true:false):true"

but i want if the Request id authenticated then it should check whether the user has already rated or not at the end the final html should look like either

data-rateit-readonly="true"

or

data-rateit-readonly="false"

please help me solve this problem…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:02:37+00:00Added an answer on June 11, 2026 at 8:02 pm

    You should use the multi-token syntax support (broken apart for readability):

    data-rateit-readonly="@(Request.IsAuthenticated ? (
        Model.HasRatedOnAccuracy ? true : false
    ) : true)"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i m using star rating plugin in jquery mobile to rate my docs my
I am using a star rating plugin with ExtJS that is working well, but
I'm using the jquery star rating plugin by fyneworks. The problem is that about
I am using a wordpress plugin called GD Star Rating to allow my users
I am using the Star Rating widget and I'm trying to set the initial
I'm using jquery.rating.js plugin and I wrote a litle function that shows the value
I'm using a jquery star rating plugin. Before I would just have a EditorFor
I'm using this plugin: http://www.fyneworks.com/jquery/star-rating/ Is it possible to put a click function inside
Using the jQuery Star Rating plugin everything works well until I select a star
I'm using this plugin http://www.fyneworks.com/jquery/star-rating/#tab-Testing . I was attempting to make a client-side validation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.