web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Entity Attribute Logic...
Power Pages
Answered

Entity Attribute Logical Name for Condition in Power Portals' Web Form Step

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey, I'm trying to make a condition in Power Portal Web Form Step where I would like to validate two attribute of the same entity. The first field is Token while the other is Fill Token. Where can I find the entity attribute logical name and is it possible for me to operate two attributes instead of one attribute and one value? Thanks in advance

byansakura_0-1599551097120.png

 

Categories:
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi  @Anonymous  As far as I am aware when you create a field in Entity. The schema will be converted in to logical name internally. 

     

    In a nutshell:

    Both logical and Schema names are similar but for "Schema Names" it will have Pascal case. ex: new_Firstname  and the logical name would be fully lower case: ex:new_firstname 

     

    Some reference for your kind attention: 

     

    https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-objects 

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi

     

    In web form condition step you can only compare an attribute against a value, not against another attribute

    to find your attributes logical names you can navigate to make.powerapps.com --> solutions --> create your own with your components or open the Default Solution

    there you can see the field names

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Oh I see that now, thanks a bunch. I was going to make a token  validation using condition. Is there any way I can achieve that in portal? Thank you in advance!

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    What exactly you mean by token validation? can you expand a bit more your requirement?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    When a user entered a value, i would like to validate the value so it matches another field in my entity that is autogenerated, which is form. I've tried to make a client-side validation instead of using validate page, but it also only works for value. I guess i made some mistake in the query.

    byansakura_1-1599632886402.png

    this one works fine but when i changed '9999' with a a variable, it always returns error message. 

     

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi @Anonymous the client-side validation should work

    have you tried printing in the console both "token" and "filled token" to see if they are a match?

  • Verified answer
    H V Profile Picture
    1,510 on at

    Hi @Anonymous 

    Can you please change the variable name and check again? Variable names should not be same as field logical name.

    Please try below code or change the variable name:

    var cr898_filltokenData = $("#cr898_filltoken").val();
    var cr898_tokenData = $("#cr898_token").val();
    if(cr898_filltokenData != cr898_tokenData )
    {
    	return false;
    }
    else
    {
    	return true;
    }

     

    --------------------------
    If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Dear @OliverRodrigues I ended up using custom javascript instead of using validation page and it did work, however i had to include the field Token in the form for it to work otherwise it will only return error message. In the desired result, actually the field token is not supposed to appear in the form but hiding the field also makes the validation fails. I finally hid the field name but the text field is still there,.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much @hardikv , i had to include the field Token in the form for it to work otherwise it will only return error message. In the desired result, actually the field token is not supposed to appear in the form but hiding the field also makes the validation fails. Is it possible to have this condition when the field is not submitted to the form? Or do I have to use custom css to achieve the field that can't be seen?

  • Verified answer
    H V Profile Picture
    1,510 on at

    Hi @Anonymous 

    If you want to hide token field then add below code in webform step:

    • Open your web form step
    • Click on Form Option tab
    • add below code in section
    $( document ).ready(function() {
     $("#cr898_token_label").hide();
     $("#cr898_token").hide();
    });

    --------------------------
    If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people! 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 35

#2
M Bilal Khan Profile Picture

M Bilal Khan 33

#3
11manish Profile Picture

11manish 21 Super User 2026 Season 2

Last 30 days Overall leaderboard